home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 098 / xpc.dqc / x-pc.doc
Encoding:
Text File  |  1985-10-11  |  159.4 KB  |  4,790 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.                               X.PC Protocol Specification
  17.  
  18.                                       Version 1.0
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.                                    September 8, 1983
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.                                     Tymshare, Inc.
  41.  
  42.                               Network Technology Division
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.                                       N O T I C E
  72.  
  73.  
  74.             This specification  is published by  Tymshare as a  proposal to
  75.             the designers and implementors of  personal computer communica-
  76.             tions  software  and  packet network  systems.   Tymshare  Inc.
  77.             reserves the right to revise this specification for any reason,
  78.             including conformity with standards promulgated by ANSI, CCITT,
  79.             ECMA, ISO, NBS, or  similar agencies; utilization of  new tech-
  80.             nology; or accommodation of  changes in communications systems.
  81.             Liability for  difficulties arising from  technical limitations
  82.             is disclaimed.
  83.  
  84.             The  provision of  a network  service  based on  a protocol  as
  85.             described in this  document requires further  technical assess-
  86.             ment as well as certain business  decisions.  As of the date of
  87.             publication of this document, this technical assessment has not
  88.             been completed nor have the  business decisions been made.  Any
  89.             expenditures that may be made predicated on the possible avail-
  90.             ability  of this  service are  the sole  responsibility of  the
  91.             party authorizing such expenditures.
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.                                         PREFACE
  135.  
  136.  
  137.             This specification is  the product of Tymnet  research into the
  138.             market need and  potential models for a  reliable communication
  139.             protocol  that  provides value-added  packet  switched  network
  140.             services to personal computers.
  141.  
  142.             Personal computers,  once used only  as dedicated  and isolated
  143.             systems, are increasingly being  used in applications requiring
  144.             reliable communication with other  personal and host computers.
  145.             The X.PC protocol provides reliable communication over dial-up,
  146.             asynchronous  communications links  between personal  computers
  147.             and packet switched networks.
  148.  
  149.             Being a derivative of X.25, X.PC  provides the class of service
  150.             defined by the Open Systems  Interconnect model for the network
  151.             layer.
  152.  
  153.             Tymnet solicits comments on this  specification from all inter-
  154.             ested parties.  Comments should be addressed to:
  155.  
  156.  
  157.                                     X.PC Development Group
  158.                                     Network Technology Division
  159.                                     Tymshare, Inc.
  160.                                     10261 Bubb Road
  161.                                     Cupertino, CA 95014
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.             X.PC Protocol Specification                   September 8, 1983
  195.  
  196.  
  197.                                        CONTENTS
  198.  
  199.  
  200.             1.0 SCOPE AND FIELD OF APPLICATION .......................... 1
  201.  
  202.             2.0 REFERENCES .............................................. 2
  203.  
  204.             3.0 DESIGN GOALS ............................................ 3
  205.  
  206.                3.1 Reliability .......................................... 3
  207.  
  208.                   3.1.1 Low Undetected Bit Error Rate ................... 3
  209.  
  210.                   3.1.2 Delivery of Data in Correct Sequence ............ 3
  211.  
  212.                   3.1.3 Recovery from Loss of Physical Connection ....... 4
  213.  
  214.                3.2 Throughput ........................................... 4
  215.  
  216.                   3.2.1 Low Protocol Overhead ........................... 4
  217.  
  218.                   3.2.2 Window Algorithm ................................ 4
  219.  
  220.                   3.2.3 Timely Recovery from Transmission Line Errors ... 5
  221.  
  222.                3.3 Functionality ........................................ 5
  223.  
  224.                   3.3.1 Multiple Logical Paths .......................... 5
  225.  
  226.                   3.3.2 Operation Without a Packet Switched Network ..... 5
  227.  
  228.                   3.3.3 Optimization for Batch or Interactive Traffic ... 5
  229.  
  230.                   3.3.4 Different Levels of Service ..................... 6
  231.  
  232.                3.4 Standards ............................................ 6
  233.  
  234.                3.5 Compatibility with Personal Computer Capabilities .... 6
  235.  
  236.             4.0 PACKET LAYER LOGICAL INTERFACE .......................... 7
  237.  
  238.                4.1 Introduction and General Considerations .............. 7
  239.  
  240.                   4.1.1 Logical Channels ................................ 8
  241.  
  242.                   4.1.2 Packet Layer Entity ............................ 11
  243.  
  244.                   4.1.3 Basic Packet Structure ......................... 11
  245.  
  246.  
  247.                                                                      Page i
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.             X.PC Protocol Specification                   September 8, 1983
  258.  
  259.  
  260.                   4.1.4 Maximum Packet Size ............................ 13
  261.  
  262.                   4.1.5 Determining DTE/DXE Characteristics ............ 13
  263.  
  264.                4.2 Flow Control Procedures ............................. 13
  265.  
  266.                   4.2.1 Numbering of Packets ........................... 13
  267.  
  268.                   4.2.2 Window Description ............................. 14
  269.  
  270.                   4.2.3 Data Packet Limit .............................. 14
  271.  
  272.                   4.2.4 Flow Control Principles ........................ 14
  273.  
  274.                   4.2.5 Receive Ready Packet ........................... 15
  275.  
  276.                   4.2.6 Receive Not Ready Packet ....................... 16
  277.  
  278.                4.3 Error Recovery Procedures ........................... 16
  279.  
  280.                   4.3.1 T15/T25 Timer and R15/R25 Counter .............. 16
  281.  
  282.                   4.3.2 T17/T27 Timer and R17/R27 Counter .............. 18
  283.  
  284.                   4.3.3 Other Timers and Counters ...................... 19
  285.  
  286.                   4.3.4 Out-of-Sequence Packet ......................... 19
  287.  
  288.                   4.3.5 Duplicate Packets .............................. 22
  289.  
  290.                4.4 Packet Format Introduction .......................... 22
  291.  
  292.                   4.4.1 General Format Identifier Field ................ 23
  293.  
  294.                   4.4.2 Logical Channel Identifier Field ............... 24
  295.  
  296.                   4.4.3 Packet Receive Sequence Number Field ........... 24
  297.  
  298.                   4.4.4 Packet Send Sequence Number Field .............. 24
  299.  
  300.                   4.4.5 Packet Type Identifier Field ................... 24
  301.  
  302.                4.5 Call Setup and Call Clearing Packet Formats ......... 26
  303.  
  304.                   4.5.1 Call Request and Incoming Call Packets ......... 26
  305.  
  306.                   4.5.2 Call Accepted and Call Connected Packets ....... 30
  307.  
  308.  
  309.  
  310.                                                                     Page ii
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.             X.PC Protocol Specification                   September 8, 1983
  321.  
  322.  
  323.                   4.5.3 Clear Request and Clear Indication Packets ..... 33
  324.  
  325.                   4.5.4 Clear Confirmation Packet ...................... 35
  326.  
  327.                4.6 Data and Interrupt Packet Formats ................... 36
  328.  
  329.                   4.6.1 Data Packet .................................... 36
  330.  
  331.                   4.6.2 Interrupt Packet ............................... 37
  332.  
  333.                   4.6.3 Interrupt Confirmation Packet .................. 38
  334.  
  335.                4.7 Flow Control Packet Formats ......................... 39
  336.  
  337.                   4.7.1 Receive Ready Packet ........................... 39
  338.  
  339.                   4.7.2 Receive Not Ready Packet ....................... 40
  340.  
  341.                4.8 Reset Packet Formats ................................ 41
  342.  
  343.                   4.8.1 Reset Request and Reset Indication Packets ..... 41
  344.  
  345.                   4.8.2 Reset Confirmation Packet ...................... 43
  346.  
  347.                4.9 Restart Packet Formats .............................. 44
  348.  
  349.                   4.9.1 Restart Request and Restart Indication Packets . 44
  350.  
  351.                   4.9.2 Restart Confirmation Packet .................... 47
  352.  
  353.                4.10 Diagnostic Packet Format ........................... 47
  354.  
  355.                4.11 Reject Packet Format ............................... 49
  356.  
  357.                4.12 Optional User Facilities Other Than X.25 ........... 50
  358.  
  359.                4.13 Optional User Facility Format ...................... 50
  360.  
  361.                   4.13.1 Flow Control Parameter Packet Size ............ 51
  362.  
  363.                   4.13.2 Flow Control Parameter Window Size ............ 51
  364.  
  365.                   4.13.3 Reconnect Facility ............................ 52
  366.  
  367.             5.0 DATA LINK LAYER SPECIFICATION .......................... 53
  368.  
  369.                5.1 Framing Format ...................................... 53
  370.  
  371.  
  372.  
  373.                                                                    Page iii
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.             X.PC Protocol Specification                   September 8, 1983
  384.  
  385.  
  386.                5.2 Maximum Data Link Frame Size ........................ 55
  387.  
  388.             Appendix A, PACKET FORMATS ................................. 56
  389.  
  390.             INDEX ...................................................... 66
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.                                                                     Page iv
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.             X.PC Protocol Specification                   September 8, 1983
  447.  
  448.  
  449.             Tables            ______
  450.  
  451.              1  Packet Groupings/Functions ............................. 12
  452.  
  453.              2  DCE and DTE Timers and Counters ........................ 19
  454.  
  455.              3  General Format Identifier .............................. 23
  456.  
  457.              4  Packet Type Identifier ................................. 25
  458.  
  459.              5  Coding of the Restarting Cause Field in Restart
  460.                 Indication Packets ..................................... 46
  461.  
  462.  
  463.  
  464.             Figures            _______
  465.  
  466.              1  Logical Channel Identifier Assignment .................. 9
  467.  
  468.              2  General Packet Format .............................. 11, 56
  469.  
  470.              3  Timer Recovery from Lost Acknowledgment ................ 17
  471.  
  472.              4  Timer Recovery from Loss of Last Packet Sent in a
  473.                 Window with No More Packets to Send .................... 18
  474.  
  475.              5  Recovery from Out-of-Sequence Packet ................... 20
  476.  
  477.              6  Recovery from More Than One Lost Packet ................ 21
  478.  
  479.              7  Timer Recovery from Loss of Last Packet Sent in a
  480.                 Window with More Packets to Send ....................... 22
  481.  
  482.              8  Call Request and Incoming Call Packet Format ....... 27, 57
  483.  
  484.              9  Call Accepted and Call Connected Packet Format ..... 31, 58
  485.  
  486.             10  Clear Request and Clear Indication Packet Format ... 34, 59
  487.  
  488.             11  Clear Confirmation Packet Format ................... 36, 59
  489.  
  490.             12  Data Packet Format ................................. 37, 60
  491.  
  492.             13  Interrupt Packet Format ............................ 38, 60
  493.  
  494.             14  Interrupt Confirmation Packet Format ............... 39, 61
  495.  
  496.             15  Receive Ready Packet Format ........................ 40, 61
  497.  
  498.  
  499.                                                                      Page v
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.             X.PC Protocol Specification                   September 8, 1983
  510.  
  511.  
  512.             16  Receive Not Ready Packet Format .................... 41, 62
  513.  
  514.             17  Reset Request and Reset Indication Packet Format ... 42, 62
  515.  
  516.             18  Reset Confirmation Packet Format ................... 44, 63
  517.  
  518.             19  Restart Request and Restart Indication Packet
  519.                 Format.............................................. 45, 63
  520.  
  521.             20  Restart Confirmation Packet Format ................. 47, 64
  522.  
  523.             21  Diagnostic Packet Format ........................... 48, 64
  524.  
  525.             22  Reject Packet Format ............................... 49, 65
  526.  
  527.             23  X.PC Data Link Transmission Frame Format ............... 54
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.                                                                     Page vi
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.             X.PC Protocol Specification                   September 8, 1983
  573.  
  574.  
  575.                               X.PC PROTOCOL SPECIFICATION
  576.  
  577.  
  578.             SECTION 1.0 SCOPE AND FIELD OF APPLICATION            ___________
  579.  
  580.             This specification defines the formats and procedures at X.PC's
  581.             packet and data  link layers for Data  Terminal Equipment (DTE)
  582.             and Data Communication Equipment  (DCE).  Both switched virtual
  583.             call and permanent virtual call modes of operation are defined.
  584.  
  585.             This specification covers  DTE and DCE operation  when a packet
  586.             switched network is accessed through a circuit switched or ded-
  587.             icated  connection.  It  also  includes  the additional  packet
  588.             layer procedures necessary for two DTEs to communicate directly
  589.             (i.e., without an  intervening packet switched network)  over a
  590.             dedicated or circuit switched connection.
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.                                    SCOPE AND FIELD OF APPLICATION    Page 1
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.             X.PC Protocol Specification                   September 8, 1983
  636.  
  637.  
  638.             SECTION 2.0 REFERENCES            ______________________
  639.  
  640.             CCITT  Recommendation  X.25, Interface  between  data  terminal
  641.             equipment (DTE)  and data  circuit-terminating equipment  (DCE)
  642.             for terminals operating in the packet  mode on public data net-
  643.             works, X25 DR80002.
  644.  
  645.             ISO Standard X.25, Packet Layer Specification for Data Terminal
  646.             Equipment, ISO/TC 97/SC 6.
  647.  
  648.             CCITT Recommendation X.96, Call progress signals in public data
  649.             networks, Vol VIII, Fascicle VIII.3.
  650.  
  651.             ISO Reference Model  of Open Systems Interconnection  for CCITT
  652.             Applications.
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.                                                        REFERENCES    Page 2
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.             X.PC Protocol Specification                   September 8, 1983
  699.  
  700.  
  701.             SECTION 3.0 DESIGN GOALS            ________________________
  702.  
  703.             This section addresses  reliability, throughput, functionality,
  704.             compatibility with  standards, and compatibility  with personal
  705.             computer processing capability.
  706.  
  707.  
  708.             SECTION 3.1 Reliability            _______________________
  709.  
  710.             The X.PC protocol  must provide for the  error-free exchange of
  711.             data between DTE and DXE, where  error-free is defined as a low
  712.             undetected  bit error  rate, the  delivery of  data in  correct
  713.             sequence, and the ability to recover  from loss of the physical
  714.             connection.   The term  DXE  is used  in  those contexts  where
  715.             either a DTE or a DCE is applicable.
  716.  
  717.  
  718.             3.1.1 Low Undetected Bit Error Rate                  ____________
  719.  
  720.             User data  is grouped into X.PC  packets that are  protected by
  721.             the X.PC data link frame.  Cyclic redundancy check bits provide
  722.             the following level of detection:
  723.  
  724.                            Single bit errors: 100%
  725.                            Double bit errors: 100%
  726.                     Odd number of error bits: 100%
  727.                Error burst less than 17 bits: 100%
  728.             Error burst greater than 17 bits: 10(-5) probability that the
  729.                                               burst is undetected
  730.  
  731.             Assuming a fixed-length  block of 1000 bits  transmitted over a
  732.             1200 bit per  second dial-up telephone line with  an error rate
  733.             of 10(-3),  the theoretical undetected  error rate is  10(-3) x
  734.             10(-5) or 10(-8).   The probability is that as  many as 100,000
  735.             blocks can be transmitted (in  1388 hours) before an undetected
  736.             error occurs.   The figure  used for  the telephone  line error
  737.             rate, 10(-3), is pessimistic.
  738.  
  739.  
  740.             3.1.2 Delivery of Data in Correct Sequence                  _____
  741.  
  742.             User data is  grouped into packets  that are  sequentially num-
  743.             bered using modulo 16  arithmetic.  Packets lost due  to trans-
  744.             mission line errors are retransmitted  using this sequence num-
  745.             ber, recovering the lost packet in the correct sequence.
  746.  
  747.  
  748.  
  749.  
  750.  
  751.                                                      DESIGN GOALS    Page 3
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.             X.PC Protocol Specification                   September 8, 1983
  762.  
  763.  
  764.             Duplicate packets,  which may  be transmitted  to recover  from
  765.             transmission line  errors, are  detected by  the same  sequence
  766.             numbering scheme and are discarded,  thus preserving the origi-
  767.             nal data sequence.
  768.  
  769.  
  770.             3.1.3 Recovery from Loss of Physical Connection
  771.  
  772.             X.PC reconnects  logical paths without  loss or  duplication of
  773.             data using its  reconnect facility.  Keys are  exchanged at the
  774.             time  logical paths  are established  which, in  the event  the
  775.             physical connection  is lost, can  be exchanged  to reestablish
  776.             logical connections once  the physical connection  is reestabl-
  777.             ished.
  778.  
  779.  
  780.             SECTION 3.2 Throughput            ______________________
  781.  
  782.             Given the 20% overhead of  asynchronous character framing, X.PC
  783.             must utilize the remaining bandwidth as efficiently as possible
  784.             to provide good throughput and to minimize delay.  Bandwidth is
  785.             utilized efficiently  through low  protocol overhead,  a window
  786.             algorithm, and timely recovery from transmission line errors.
  787.  
  788.  
  789.             3.2.1 Low Protocol Overhead                  ____________________
  790.  
  791.             Assuming a  packet containing 128  octets of user  data, X.PC's
  792.             protocol overhead is 8 octets,  resulting in 94% utilization of
  793.             the asynchronous bandwidth.
  794.  
  795.             Length encoding for data transparency  minimizes protocol over-
  796.             head.  Unlike byte stuffing, which  incurs an increasing amount
  797.             of overhead dependent on data  values, length encoding incurs a
  798.             low constant fixed overhead independent of data values.
  799.  
  800.             Eliminating  duplication of  function  between protocol  layers
  801.             also contributes to  the reduction of protocol  overhead.  X.PC
  802.             provides flow control and error  recovery at one protocol layer
  803.             and error detection at another.
  804.  
  805.  
  806.             3.2.2 Window Algorithm                  ________________
  807.  
  808.             Through  the use  of sequence  numbers combined  with a  window
  809.             algorithm X.PC allows multiple packets to be transmitted before
  810.             acknowledgment is  required.  X.PC also  allows acknowledgments
  811.             to be added to data flowing in the opposite direction.
  812.  
  813.  
  814.                                                      DESIGN GOALS    Page 4
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.             X.PC Protocol Specification                   September 8, 1983
  825.  
  826.  
  827.             3.2.3 Timely Recovery from Transmission Line Errors
  828.  
  829.             X.PC's data  frame protects the  packet header,  which contains
  830.             the packet  sequence numbers, separately  from the rest  of the
  831.             packet, which contains user data.   Because the packet sequence
  832.             numbers are known, errors that occur  in the second part of the
  833.             frame result in the immediate request for retransmission of the
  834.             frame rather than waiting for another packet or a timeout.
  835.  
  836.  
  837.             SECTION 3.3 Functionality            _________________________
  838.  
  839.             X.PC combines the capabilities and  characteristics of a packet
  840.             switched network and personal  computers.  This is accomplished
  841.             by providing multiple logical paths over a single physical con-
  842.             nection, operating without an intervening  packet switched net-
  843.             work, allowing  optimization for batch or  interactive traffic,
  844.             and providing different levels of service.
  845.  
  846.  
  847.             3.3.1 Multiple Logical Paths                  ___________________
  848.  
  849.             The combination of X.PC's multiple logical  paths with a multi-
  850.             ple window  server on a personal  computer opens the door  to a
  851.             new generation  of networking applications nearly  unlimited in
  852.             scope.  X.PC is also ideally suited  to service the coming gen-
  853.             eration of multiple task applications.
  854.  
  855.  
  856.             3.3.2 Operation Without a Packet Switched Network
  857.  
  858.             Although X.PC is  intended for use between  a personal computer
  859.             and  a packet  switched network,  the protocol  does allow  for
  860.             direct connection between personal computers  or between a per-
  861.             sonal computer and a host.
  862.  
  863.  
  864.             3.3.3 Optimization for Batch or Interactive Traffic
  865.  
  866.             During call  setup, both  packet size  and window  size can  be
  867.             negotiated to optimize for the traffic type.
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.                                                      DESIGN GOALS    Page 5
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.             X.PC Protocol Specification                   September 8, 1983
  888.  
  889.  
  890.             3.3.4 Different Levels of Service                  ______________
  891.  
  892.             X.PC specifies both  a simple permanent virtual  call procedure
  893.             and a more powerful switched virtual call procedure.  Both pro-
  894.             cedures can be used simultaneously over  the same physical con-
  895.             nection.
  896.  
  897.  
  898.             SECTION 3.4 Standards            _____________________
  899.  
  900.             X.PC is  based on CCITT  recommendation X.25 and  thus benefits
  901.             from  the wide  understanding of  X.25's principles.   Further,
  902.             because X.PC provides  nearly all  X.25 functions  to asynchro-
  903.             nous,  low-speed personal  computers,  it  is possible  for  an
  904.             intelligent  packet switched  network to  convert  X.PC into  a
  905.             CCITT X.25 network.
  906.  
  907.             X.PC's being based upon CCITT recommendation X.25 also provides
  908.             a growth path for the implementation of X.28/X.29 PAD functions
  909.             in a personal computer.  In general, X.PC provides an excellent
  910.             base upon which higher level protocols may be implemented.
  911.  
  912.  
  913.             SECTION 3.5 Compatibility with Personal Computer Capabilities
  914.  
  915.             X.PC was designed to be implemented  easily on the current gen-
  916.             eration of  high performance 8-bit and  16-bit microprocessors.
  917.             Most of the protocol fields occupy either the high order 4 bits
  918.             or low order 4 bits of  an octet, which are easily accommodated
  919.             by  both high-level  and  low-level  languages.  The  remaining
  920.             fields occupy full octets.
  921.  
  922.             The use of length encoding  for data transparency minimizes CPU
  923.             overhead compared to byte stuffing, in which every data charac-
  924.             ter must be processed.
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.                                                      DESIGN GOALS    Page 6
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.             X.PC Protocol Specification                   September 8, 1983
  951.  
  952.  
  953.             SECTION 4.0 PACKET LAYER LOGICAL INTERFACE            ___________
  954.  
  955.             This section contains an introduction to the packet layer logi-
  956.             cal interface, flow control and  error recovery procedures, and
  957.             discussions of  the various  packet formats  and optional  user
  958.             facilities other than X.25.
  959.  
  960.  
  961.             SECTION 4.1 Introduction and General Considerations            __
  962.  
  963.             This section  defines X.PC's  packet layer,  which governs  the
  964.             transfer of packets at a DTE/DCE or DTE/DTE interface, from the
  965.             viewpoint of both the DTE and DCE.
  966.  
  967.             The packet layer in a sending DXE packetizes messages delivered
  968.             by a  higher level  entity in  the same  DXE before  giving the
  969.             information to a link layer protocol for transmission.
  970.  
  971.             The packet layer  in a receiving DXE receives  packets from the
  972.             link  layer, checks  the packets  for  correctness, strips  off
  973.             packet layer  headers, generates  messages from  the packetized
  974.             user data, and passes them to a higher level entity in the same
  975.             DXE.
  976.  
  977.             X.PC's packet  layer logical  interface provides  the following
  978.             capabilities that facilitate reliable and efficient data commu-
  979.             nication:
  980.  
  981.               o  Multiplexing: The ability to support multiple data streams
  982.  
  983.               o  Flow  control:  The  ability to  control,  for  each  data
  984.                  stream, the flow of data  between transmitting and receiv-
  985.                  ing DTEs and DXEs
  986.  
  987.               o  Error control: The ability to  detect errors at the packet
  988.                  layer and to correct errors indicated by the link layer
  989.  
  990.               o  Reset and restart: The ability  to reinitialize communica-
  991.                  tion paths at the packet layer if serious errors occur
  992.  
  993.             These functions are made possible through the use of:
  994.  
  995.               o  Logical channel numbers
  996.  
  997.               o  Send and receive sequence numbers
  998.  
  999.               o  Data packets
  1000.  
  1001.  
  1002.  
  1003.                                    PACKET LAYER LOGICAL INTERFACE    Page 7
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.             X.PC Protocol Specification                   September 8, 1983
  1014.  
  1015.  
  1016.               o  Control packets that regulate information flow
  1017.  
  1018.               o  Control packets that request retransmission of data packets
  1019.  
  1020.               o  Control packets that reinitialize communication
  1021.  
  1022.  
  1023.             4.1.1 Logical Channels                  ________________
  1024.  
  1025.             To permit simultaneous switched virtual calls, logical channels
  1026.             are used.  Each call is  assigned a logical channel identifier,
  1027.             which is  a number  in the range  1 - 15.  The  logical channel
  1028.             identifier is assigned during the call setup phase from a range
  1029.             of previously agreed upon logical channel identifiers.  Logical
  1030.             channel identifier 0 is reserved and may not be assigned.
  1031.  
  1032.             A DTE's use of particular logical channels is agreed upon for a
  1033.             period with the DXE.  Figure 1 shows  the structure for assign-
  1034.             ing logical  channels.  No  more than  15 simultaneous  virtual
  1035.             calls may be established at any one time.
  1036.  
  1037.             Logical channel 1 is used for  a single logical channel DTE/DXE
  1038.             interface.  The logical channels shown in Figure 1 are used for
  1039.             a multiple logical channel DTE/DXE interface.
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.                                    PACKET LAYER LOGICAL INTERFACE    Page 8
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.             X.PC Protocol Specification                   September 8, 1983
  1077.  
  1078.  
  1079.                                  LCI
  1080.                           -----------------
  1081.                                 0 |
  1082.                                 1 |
  1083.                                   //
  1084.                               LIC |  --.
  1085.                                   |    | One-way incoming
  1086.                                   |    |
  1087.                               HIC |  --:
  1088.                                  //
  1089.                               LTC |  --.
  1090.                                   |    |
  1091.                                   |    | Two-way
  1092.                                   |    |
  1093.                               HTC |  --:
  1094.                                  //
  1095.                               LOC |  --.
  1096.                                   |    |
  1097.                                   |    | One-way outgoing
  1098.                                   |    |
  1099.                                   |    |
  1100.                               HOC |  --:
  1101.                                  //
  1102.                                15 |
  1103.                           -----------------
  1104.  
  1105.                           LCI: Logical channel identifier
  1106.             LIC: Lowest incoming channel    HIC: Highest incoming channel
  1107.             LTC: Lowest two-way channel     HTC: Highest two-way channel
  1108.             LOC: Lowest outgoing channel    HOC: Highest outgoing channel
  1109.  
  1110.                     Figure 1  Logical Channel Identifier Assignment
  1111.  
  1112.  
  1113.             The following comments apply to Figure 1.
  1114.  
  1115.             Logical channels are assigned for a period with the DXE as fol-
  1116.             lows:
  1117.  
  1118.             Logical channels LIC to HIC: The range of logical channels that
  1119.             are assigned to  one-way incoming logical channels  for virtual
  1120.             calls (see Note 4).
  1121.  
  1122.             Logical channels LTC to HTC: The range of logical channels that
  1123.             are assigned to two-way logical channels for virtual calls.
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.                                    PACKET LAYER LOGICAL INTERFACE    Page 9
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.             X.PC Protocol Specification                   September 8, 1983
  1140.  
  1141.  
  1142.             Logical channels LOC to HOC: The range of logical channels that
  1143.             are assigned to  one-way outgoing logical channels  for virtual
  1144.             calls (see Note 4).
  1145.  
  1146.             Logical channels outside the ranges LIC to HIC, LTC to HTC, and
  1147.             LOC to HOC are unassigned logical channels.
  1148.  
  1149.             Note 1: The references to logical  channel identifiers are made
  1150.                     according to a set  of contiguous numbers from  0 (low-
  1151.                     est) to 15 (highest) using bits 4 through 1 of octet 1.
  1152.                     The numbering is  binary coded, where bit 1  is the low
  1153.                     order bit.
  1154.  
  1155.             Note 2: logical channel identifier 0 may not be assigned.
  1156.  
  1157.             Note 3: All logical channel boundaries are agreed upon with the
  1158.                     DXE for a specified time.
  1159.  
  1160.             Note 4: In a  DTE/DTE environment, one  DTE views the  range of
  1161.                     logical channel identifiers as  presented here, whereas
  1162.                     the other DTE  views it as a DCE (e.g.,  the latter DTE
  1163.                     views the  range from LIC  to HIC as  one-way outgoing)
  1164.                     (see Section 4.2.5).
  1165.  
  1166.             Note 5: In the  absence of  one-way incoming  logical channels,
  1167.                     logical channel 1 is available  for LTC. In the absence
  1168.                     of one-way incoming logical channels  and two-way logi-
  1169.                     cal channels, logical channel 1 is available for LOC.
  1170.  
  1171.             Note 6: The search algorithm of a DCE, or a DTE performing as a
  1172.                     DCE in a DTE/DTE environment, for a logical channel for
  1173.                     a new incoming call will be  to use the lowest numbered
  1174.                     logical channel in the ready state (p1) in the range of
  1175.                     LIC to HIC  and LTC to HTC.   (See CCITT recommendation
  1176.                     X.25.)
  1177.  
  1178.             Note 7: To minimize the risk of  call collision, the DTE search
  1179.                     algorithm  starts  with the  highest  numbered  logical
  1180.                     channel in the ready state  (p1) in the two-way logical
  1181.                     channel (HTC) or one-way outgoing logical channel (HOC)
  1182.                     ranges.
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.                                   PACKET LAYER LOGICAL INTERFACE    Page 10
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.             X.PC Protocol Specification                   September 8, 1983
  1203.  
  1204.  
  1205.             4.1.2 Packet Layer Entity                  ___________________
  1206.  
  1207.             The concept of communication via  logical channels is native to
  1208.             packet layer terminology.   It is conceivable, however,  that a
  1209.             DTE may have one or more connections to one or more packet net-
  1210.             works and/or to one or more  DTEs without an intervening packet
  1211.             network.  Therefore, it  is necessary to introduce  the concept
  1212.             of a  'packet layer' entity.  One  such entity exists in  a DTE
  1213.             for each DTE/DTE (without an intervening packet network) inter-
  1214.             face or for each DTE/DCE (packet network) interface.
  1215.  
  1216.             Which  entity  to use  to  reach  a particular  destination  is
  1217.             decided external  to the  protocol described  here.  The  items
  1218.             discussed in this  section pertain to each  packet layer entity
  1219.             in a DTE or DCE.
  1220.  
  1221.  
  1222.             4.1.3 Basic Packet Structure                  ___________________
  1223.  
  1224.             Each packet  transferred across the DTE/DXE  interface consists
  1225.             of three or more octets.  The first two octets contain the gen-
  1226.             eral  format  identifier, logical  channel  identifier,  packet
  1227.             receive  sequence  number,  and  packet  send  sequence  number
  1228.             fields.  The third octet contains either  the packet type iden-
  1229.             tifier or one  octet of packet user data.   Other packet fields
  1230.             are appended as required (see Section 4.4).  Figure 2 shows the
  1231.             generalized packet format.
  1232.  
  1233.  
  1234.                                           Bits
  1235.                              8   7   6   5   4   3   2   1
  1236.                     Octet  .---.---.---.---.---.---.---.---.
  1237.                            |     G F I     |     L C I     |
  1238.                       1    |               |               |
  1239.                            |---:---:---:---:---:---:---:---|
  1240.                            |    P(R)       |    P(S)       |
  1241.                       2    |               |               |
  1242.                            |---:---:---:---:---:---:---:---|
  1243.                            |    Packet type identifier     |
  1244.                       3    |                               |
  1245.                            |---:---:---:---:---:---:---:---|
  1246.                            |  Additional fields dependent  |
  1247.                            //       on packet type        //
  1248.                            |                               |
  1249.                            |---:---:---:---:---:---:---:---|
  1250.  
  1251.                             Figure 2  General Packet Format
  1252.  
  1253.  
  1254.  
  1255.                                   PACKET LAYER LOGICAL INTERFACE    Page 11
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.             X.PC Protocol Specification                   September 8, 1983
  1266.  
  1267.  
  1268.             For interoperability across  all DTE/DXE interfaces,  any addi-
  1269.             tional field appended after the first three octets must contain
  1270.             an integral number of octets.
  1271.  
  1272.             Packet types are given in Table 1.
  1273.  
  1274.  
  1275.                                         Table 1
  1276.  
  1277.                               Packet Groupings/Functions
  1278.  
  1279.           |--------------.--------------------------.------------------------|
  1280.           | Packet Group |      Function            |     Packet Type        |
  1281.           |--------------|--------------------------|------------------------|
  1282.           | Call setup   | Establish and terminate  | Call request           |
  1283.           | and call     | a virtual call for       | Incoming call          |
  1284.           | clearing     | DTE/DXE communication;   | Call accepted          |
  1285.           | (see note)   | may convey data for      | Call connected         |
  1286.           |              | higher-level entity      | Clear request          |
  1287.           |              | processing               | Clear indication       |
  1288.           |              |                          | Clear confirmation     |
  1289.           |--------------|--------------------------|------------------------|
  1290.           | Data and     | Convey data or           | Data                   |
  1291.           | interrupt    | interrupt information    | Interrupt              |
  1292.           |              | for higher-level         | Interrupt confirmation |
  1293.           |              | entity processing        |                        |
  1294.           |--------------|--------------------------|------------------------|
  1295.           | Flow control | Control the flow         | Receive ready          |
  1296.           | and reset    | of data packets          | Receive not ready      |
  1297.           |              | across a DTE/DXE         | Reject                 |
  1298.           |              | interface                | Reset request          |
  1299.           |              |                          | Reset indication       |
  1300.           |              |                          | Reset confirmation     |
  1301.           |--------------|--------------------------|------------------------|
  1302.           | Restart      | (Re)Initialize all       | Restart request        |
  1303.           |              | communication between    | Restart indication     |
  1304.           |              | a DTE and a DXE          | Restart confirmation   |
  1305.           |--------------|--------------------------|------------------------|
  1306.           | Diagnostic   | Pass error diagnostics   | Diagnostic             |
  1307.           |              | to a DXE                 |                        |
  1308.           |------------------------------------------------------------------|
  1309.  
  1310.             Note: Call setup and call clearing packets and procedures are not
  1311.                   required for permanent virtual circuit Services.
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.                                   PACKET LAYER LOGICAL INTERFACE    Page 12
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.             X.PC Protocol Specification                   September 8, 1983
  1329.  
  1330.  
  1331.             4.1.4 Maximum Packet Size                  ___________________
  1332.  
  1333.             The  data packet  user  data field  may  contain  no more  than
  1334.             256 octets.  The maximum  packet size,  including packet  over-
  1335.             head, is  258 octets.  The maximum  number of data  packet user
  1336.             data field octets can be negotiated (see Section 4.13).
  1337.  
  1338.  
  1339.             4.1.5 Determining DTE/DXE Characteristics                  ______
  1340.  
  1341.             In a DTE/DTE environment (i.e.,  no intervening packet switched
  1342.             network), the restart procedure determines  which DTE acts as a
  1343.             DCE with  respect to logical  channel selection  during virtual
  1344.             call establishment and  the resolution  of virtual  call colli-
  1345.             sion.
  1346.  
  1347.             This procedure  is defined  in the  ISO X.25  DTE packet  layer
  1348.             specification.  In  essence, the restart-cause  code determines
  1349.             the appropriate  mode of  operation.  A  restart-cause code  of
  1350.             zero in a  restart indication packet identifies  the originator
  1351.             as a DTE.
  1352.  
  1353.             A restart-cause  code other than  zero in a  restart indication
  1354.             packet identifies  the originator as a  DCE.  Refer to  the ISO
  1355.             X.25 DTE  packet layer  specification for  full details  on the
  1356.             restart procedure.
  1357.  
  1358.  
  1359.             SECTION 4.2 Flow Control Procedures            __________________
  1360.  
  1361.             At the DTE/DXE interface of a logical channel, the transmission
  1362.             of data packets is controlled separately for each direction and
  1363.             is based on authorization from the receiver.
  1364.  
  1365.  
  1366.             4.2.1 Numbering of Packets                  ____________________
  1367.  
  1368.             With  the exception  of the  reset request/indication,  restart
  1369.             request/indication, receive ready (RR), receive not ready (RNR)
  1370.             and reject packets, all packets  transmitted across the DTE/DXE
  1371.             interface in  each direction  are sequentially  numbered.  This
  1372.             number is  called the  packet send  sequence number  P(S).  The
  1373.             sequence numbers  are modulo 16.   The packet  sequence numbers
  1374.             cycle through the range 0 - 15.
  1375.  
  1376.             The  restart request,  restart indication,  reset request,  and
  1377.             reset indication  packets reset both the  DTE and DXE  P(S) and
  1378.             P(R) to zero.  Subsequent packets are numbered consecutively.
  1379.  
  1380.  
  1381.                                   PACKET LAYER LOGICAL INTERFACE    Page 13
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.             X.PC Protocol Specification                   September 8, 1983
  1392.  
  1393.  
  1394.             4.2.2 Window Description                  __________________
  1395.  
  1396.             At the  DTE/DXE interface  of a  logical channel,  a window  is
  1397.             defined as the modulo 16 ordered set of P(W) consecutive packet
  1398.             send sequence numbers  P(S) of all packets  authorized to cross
  1399.             the interface.
  1400.  
  1401.             The P(S)  of the  first of the  P(W) packets  in the  window is
  1402.             referred to as the lower window edge.  The upper window edge is
  1403.             the P(S)  of the last of  the P(W) packets authorized  to cross
  1404.             the interface.
  1405.  
  1406.             The P(S) of the first packet not authorized to cross the inter-
  1407.             face is  the value of the  lower window edge plus  P(W) (modulo
  1408.             16).  The standard window size P(W)  is 8 for each direction of
  1409.             packet transmission at the DTE/DXE interface.  The minimum win-
  1410.             dow size P(W) is 4.
  1411.  
  1412.  
  1413.             4.2.3 Data Packet Limit                  _________________
  1414.  
  1415.             The data packet limit is the number of data packets that may be
  1416.             transmitted in a window.  The data  packet limit is one half of
  1417.             P(W) for  each direction  of data  transmission at  the DTE/DXE
  1418.             interface.  The standard default data packet limit is 4.
  1419.  
  1420.             The DXE uses D(S) to count transmitted data packets and D(R) to
  1421.             count received data packets.
  1422.  
  1423.  
  1424.             4.2.4 Flow Control Principles                  __________________
  1425.  
  1426.             When the  send sequence number  P(S) of  the next packet  to be
  1427.             transmitted by  a DXE other  than a  data packet is  within the
  1428.             window, the DXE is authorized to transmit the packet.
  1429.  
  1430.             When P(S) of the next data packet to be transmitted by a DXE is
  1431.             within the  window and D(S)  is greater  than zero, the  DXE is
  1432.             authorized to  transmit the data  packet.  On  transmitting the
  1433.             data packet the DXE decrements its D(S).
  1434.  
  1435.             When P(S)  of the packet  received by a  DXE other than  a data
  1436.             packet is  next in sequence  and is  within P(W), the  DXE will
  1437.             accept the packet.
  1438.  
  1439.             When P(S)  of the  data packet  received by  a DXE  is next  in
  1440.             sequence and the DXE's D(R) is  greater than zero, the DXE will
  1441.             accept the packet and decrement its D(R).
  1442.  
  1443.  
  1444.                                   PACKET LAYER LOGICAL INTERFACE    Page 14
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.             X.PC Protocol Specification                   September 8, 1983
  1455.  
  1456.  
  1457.             The  modulo 16  packet  receive  sequence number  P(R)  conveys
  1458.             across the DTE/DXE interface information  from the receiver for
  1459.             the  transmission  of  packets.  When  transmitted  across  the
  1460.             DTE/DXE interface, a valid P(R)  (as defined below) becomes the
  1461.             lower P(W) window edge.  In this way, additional packets may be
  1462.             authorized by the receiver to cross the DTE/DXE interface.
  1463.  
  1464.             The packet  receive sequence number  P(R) is conveyed  in data,
  1465.             RR, RNR, and reject packets.
  1466.  
  1467.             The value of a  received P(R) must be greater than  or equal to
  1468.             the last P(R)  received and less than  or equal to the  P(S) of
  1469.             the next packet to be transmitted  by that DXE.  Otherwise, the
  1470.             DXE will  consider the receipt of  this P(R) a  procedure error
  1471.             and will  reset the logical channel.   A DCE will  indicate the
  1472.             cause  as 'Local  Procedure Error.'   A DTE  will indicate  the
  1473.             cause as 'DTE Originated.'  In either case, the diagnostic will
  1474.             be 'Invalid P(R).'
  1475.  
  1476.             The P(R) returned in any of the above mentioned packets is less
  1477.             than or  equal to  the P(S)  of the  next packet  expected.  It
  1478.             implies that the DXE transmitting P(R) has accepted all packets
  1479.             up to  and including  the packet  number P(R)-1.   If any  data
  1480.             packets were acknowledged  by the transmitted P(R),  the number
  1481.             of data packets acknowledged is added to D(R).
  1482.  
  1483.             If the received P(R) acknowledges  any data packets, the number
  1484.             of data packets acknowledged is added  to D(S).  As acknowledg-
  1485.             ments for  data packets  are sent, the  number of  data packets
  1486.             acknowledged is added to the DXE's D(R).
  1487.  
  1488.  
  1489.             4.2.5 Receive Ready Packet                  ____________________
  1490.  
  1491.             A DXE  uses receive ready (RR)  packets to indicate that  it is
  1492.             ready to receive  P(W) packets within the  window starting with
  1493.             P(R), where P(R) is indicated in the RR packet.
  1494.  
  1495.             The transmission of  an RR packet with a  particular P(R) value
  1496.             is not  to be taken as  a demand for retransmission  of packets
  1497.             that have already been transmitted and are still in the window.
  1498.  
  1499.             For further  information   see  Receive   Ready  Packet   (Sec-
  1500.             tion 4.7.1).
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.                                   PACKET LAYER LOGICAL INTERFACE    Page 15
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.             X.PC Protocol Specification                   September 8, 1983
  1518.  
  1519.  
  1520.             4.2.6 Receive Not Ready Packet                  _________________
  1521.  
  1522.             A DXE uses receive not ready (RNR) packets to indicate a tempo-
  1523.             rary inability  to accept additional  data packets for  a given
  1524.             virtual call.  A DXE receiving an RNR packet stops transmitting
  1525.             data packets on the indicated  logical channel but updates P(W)
  1526.             by the P(R) value of the RNR  packet if the P(R) is valid.  The
  1527.             receive not ready situation indicated by the transmission of an
  1528.             RNR packet is cleared by the transmission in the same direction
  1529.             of a receive ready packet or by the initiation of a clear (vir-
  1530.             tual calls only), reset, or restart procedure.
  1531.  
  1532.             The transmission of  an RR packet after the  transmission of an
  1533.             RNR packet is not to be taken as a demand for retransmission of
  1534.             data packets that have already been transmitted.
  1535.  
  1536.             The RNR packet may be used to  convey across the DTE/DXE inter-
  1537.             face the P(R) value corresponding to a data packet that had the
  1538.             D bit set to 1 if additional data packets cannot be accepted.
  1539.  
  1540.             For further  information see  Receive  Not  Ready Packet  (Sec-
  1541.             tion 4.7.2) and Receive Ready Packet (Section 4.7.1).
  1542.  
  1543.  
  1544.             SECTION 4.3 Error Recovery Procedures            ________________
  1545.  
  1546.             Lost or corrupted  packets are recovered by  the retransmission
  1547.             of  packets based  on  packet  sequence numbers.   Packets  are
  1548.             retransmitted whenever an out-of-sequence packet is detected or
  1549.             a timer expires.
  1550.  
  1551.  
  1552.             4.3.1 T15/T25 Timer and R15/R25 Counter                  ________
  1553.  
  1554.             Timer T15 is used by a DCE and timer T25 by a DTE in recovering
  1555.             from errors involving sequenced packets.   The default value is
  1556.             4 seconds.
  1557.  
  1558.             Timer  T25 is  started  when the  first  packet is  transmitted
  1559.             across the DTE/DXE  interface.  If T25 is still  running at the
  1560.             time of the transmission of succeeding packets, it implies that
  1561.             previously transmitted packets are awaiting acknowledgment, and
  1562.             no further action is taken.
  1563.  
  1564.             When a P(R)  is received acknowledging some  of the outstanding
  1565.             packets, T25 is restarted.  If  all the outstanding packets are
  1566.             acknowledged, T25 is stopped.
  1567.  
  1568.  
  1569.  
  1570.                                   PACKET LAYER LOGICAL INTERFACE    Page 16
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.             X.PC Protocol Specification                   September 8, 1983
  1581.  
  1582.  
  1583.             When T25 expires,  the DXE retransmits the  last unacknowledged
  1584.             packet, as many as R15 times for a DCE and R25 times for a DTE.
  1585.             The default value of R15/R25 is 4.  See Figures 3 and 4.
  1586.  
  1587.             If the DCE R15 count is exceeded, the DCE will transmit a reset
  1588.             indication.  If  the DTE  R25 count is  exceeded, the  DTE will
  1589.             transmit a reset request.
  1590.  
  1591.             DCE timer  T15 is  stopped when  a restart  request or  a reset
  1592.             request is received.   DTE timer T25 is stopped  when a restart
  1593.             indication or a reset indication is received.
  1594.  
  1595.  
  1596.                           DXE                     DXE
  1597.                           ---                     ---
  1598.                            |                       |
  1599.             T25 started    | Data 1,2              |
  1600.                            |---------------------->|
  1601.                            | Data 1,3              |
  1602.                            |---------------------->|
  1603.                            | Data 1,4              |
  1604.                            |---------------------->|
  1605.                            | Data 1,5              |
  1606.                            |---------------------->|
  1607.                            |                       |
  1608.             RR packet      |            RR 6       | Acknowledges packets
  1609.             is lost        |<----- X --------------| 2 through 5
  1610.                            |                       |
  1611.                            |                       |
  1612.             T25 expires,   | Data 1,5              |
  1613.             last packet    |---------------------->|
  1614.             is resent and  |                       |
  1615.             T25 restarted  |                       | Duplicate packet is
  1616.                            |                       | discarded and reject
  1617.                            |           REJ 6       | is issued
  1618.             T25 stopped    |<----------------------|
  1619.                            |                       |
  1620.             T25 started,   | Data 1,6              |
  1621.             transmission   |---------------------->|
  1622.             continues      |                       |
  1623.                            |                       |
  1624.                            |                       |
  1625.  
  1626.                    Figure 3  Timer Recovery from Lost Acknowledgment
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.                                   PACKET LAYER LOGICAL INTERFACE    Page 17
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.             X.PC Protocol Specification                   September 8, 1983
  1644.  
  1645.  
  1646.                           DXE                     DXE
  1647.                           ---                     ---
  1648.                            |                       |
  1649.             T25 started    | Data 1,2              |
  1650.                            |---------------------->|
  1651.                            | Data 1,3              |
  1652.                            |---------------------->|
  1653.                            | Data 1,4              |
  1654.                            |---------------------->|
  1655.                            | Data 1,5              |
  1656.                            |------------- X ------>|
  1657.                            |                       |
  1658.                            |            RR 5       | Acknowledges packets
  1659.             T25 restarted  |<----------------------| 2 through 4
  1660.                            |                       |
  1661.                            |                       |
  1662.             T25 expires,   | Data 1,5              |
  1663.             last packet    |---------------------->|
  1664.             is resent and  |                       |
  1665.             T25 restarted  |                       |
  1666.                            |            RR 6       | Acknowledges packet 5
  1667.             T25 stopped    |<----------------------|
  1668.                            |                       |
  1669.                            |                       |
  1670.  
  1671.                 Figure 4  Timer Recovery from Loss of Last Packet Sent
  1672.                 __________in a Window with No More Packets to Send____
  1673.  
  1674.  
  1675.             4.3.2 T17/T27 Timer and R17/R27 Counter                  ________
  1676.  
  1677.             DCE timer T17  and DTE timer T27 are started  whenever a reject
  1678.             packet is transmitted.   The T17/T27 timer is  stopped when the
  1679.             first retransmitted packet is received.
  1680.  
  1681.             The DXE retransmits a reject packet  no more than R17/R27 times
  1682.             if no response is received.
  1683.  
  1684.             DCE timer  T17 is  stopped when  a restart  request or  a reset
  1685.             request is received.   DTE timer T27 is stopped  when a restart
  1686.             indication or a reset indication packet is received.
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.                                   PACKET LAYER LOGICAL INTERFACE    Page 18
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.             X.PC Protocol Specification                   September 8, 1983
  1707.  
  1708.  
  1709.             4.3.3 Other Timers and Counters                  ________________
  1710.  
  1711.             In addition to  the T15/T25 and T17/T27 timers  and the R15/R25
  1712.             and R17/R27 counters,  other X.25 timers and  counters are used
  1713.             as specified.  These are shown in Table 2.
  1714.  
  1715.  
  1716.                                         Table 2
  1717.  
  1718.                             DCE and DTE Timers and Counters
  1719.  
  1720.                      DCE Timers and Counters                     _____________
  1721.  
  1722.                      Timer  Default Value  Counter  Default Value
  1723.  
  1724.                       T10    60 seconds
  1725.                       T11   180 seconds
  1726.                       T12    60 seconds
  1727.                       T13    60 seconds
  1728.                       T15     4 seconds     R15      4
  1729.                       T17     4 seconds     R17      4
  1730.  
  1731.                      DTE Timers and Counters                     _____________
  1732.  
  1733.                      Timer  Default Value  Counter  Default Value
  1734.  
  1735.                       T20   180 seconds    R20      1
  1736.                       T21   200 seconds
  1737.                       T22   180 seconds    R22      1
  1738.                       T23   180 seconds    R23      1
  1739.                       T24    60 seconds
  1740.                       T25     4 seconds    R25      4
  1741.                       T26   180 seconds
  1742.                       T27     4 seconds    R27      4
  1743.  
  1744.  
  1745.             4.3.4 Out-of-Sequence Packet                  ___________________
  1746.  
  1747.             A lost packet is indicated when a  P(S) is received that is not
  1748.             consecutive (modulo 16) with the previous P(S).  See Figures 5,
  1749.             6, and 7.  Where this happens the  DXE sends a reject packet to
  1750.             request retransmission of the missing packet.
  1751.  
  1752.             Restart request,  restart indication, reset request,  and reset
  1753.             indication packets  have a  P(S) of  zero.  Reception  of these
  1754.             packets out of sequence is not considered an error; these pack-
  1755.             ets have the effect of resetting P(S) and P(R) to zero.
  1756.  
  1757.  
  1758.  
  1759.                                   PACKET LAYER LOGICAL INTERFACE    Page 19
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.             X.PC Protocol Specification                   September 8, 1983
  1770.  
  1771.  
  1772.  
  1773.  
  1774.                           DXE                     DXE
  1775.                           ---                     ---
  1776.                            |                       |
  1777.             T25 started    | Data 1,2              |
  1778.                            |---------------------->|
  1779.                            | Data 1,3              |
  1780.                            |---------------------->|
  1781.                            | Data 1,4              |
  1782.                            |------------ X ------->| Packet lost
  1783.                            | Data 1,5              |
  1784.                            |---------------------->| Packet is out of
  1785.                            |                       | sequence, reject
  1786.                            |           REJ 4       | is issued for
  1787.             T25 stopped    |<----------------------| missing packet 4
  1788.                            |                       |
  1789.                            |                       |
  1790.             T25 started,   | Data 1,4              |
  1791.             retransmission |---------------------->|
  1792.             starts with    | Data 1,5              |
  1793.             packet 4       |---------------------->|
  1794.                            |                       |
  1795.                            |                       |
  1796.  
  1797.                     Figure 5  Recovery from Out-of-Sequence Packet
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.                                   PACKET LAYER LOGICAL INTERFACE    Page 20
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.             X.PC Protocol Specification                   September 8, 1983
  1833.  
  1834.  
  1835.                           DXE                     DXE
  1836.                           ---                     ---
  1837.                            |                       |
  1838.             T25 started    | Data 1,2              |
  1839.                            |---------------------->|
  1840.                            | Data 1,3              |
  1841.                            |---------------------->|
  1842.                            | Data 1,4              |
  1843.                            |------------ X ------->|
  1844.                            | Data 1,5              |
  1845.                            |------------ X ------->|
  1846.                            |                       |
  1847.                            |            RR 4       | Acknowledges packets
  1848.             T25 restarted  |<----------------------| 2 through 3
  1849.                            |                       |
  1850.                            |                       |
  1851.             T25 expires,   | Data 1,5              |
  1852.             last packet    |---------------------->|
  1853.             is resent and  |                       | Packet is out of
  1854.             T25 restarted  |                       | sequence, reject
  1855.                            |                       | is issued for
  1856.                            |           REJ 4       | packet 4
  1857.                            |<----------------------|
  1858.                            |                       |
  1859.             T25 started,   | Data 1,4              |
  1860.             retransmission |---------------------->|
  1861.             starts with    | Data 1,5              |
  1862.             packet 4       |---------------------->|
  1863.                            |                       |
  1864.  
  1865.                    Figure 6  Recovery from More Than One Lost Packet
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.                                   PACKET LAYER LOGICAL INTERFACE    Page 21
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.             X.PC Protocol Specification                   September 8, 1983
  1896.  
  1897.  
  1898.                           DXE                     DXE
  1899.                           ---                     ---
  1900.                            |                       |
  1901.             T25 started    | Data 1,2              |
  1902.                            |---------------------->|
  1903.                            | Data 1,3              |
  1904.                            |---------------------->|
  1905.                            | Data 1,4              |
  1906.                            |---------------------->|
  1907.                            | Data 1,5              |
  1908.                            |------------- X ------>|
  1909.                            |                       |
  1910.             T25 restarted  |            RR 5       | Acknowledges packets
  1911.                            |<----------------------| 2 through 4
  1912.                            |                       |
  1913.                            |                       |
  1914.             Window rotates,| Data 1,6              |
  1915.             packet 6 sent  |---------------------->| Packet received
  1916.             T25 restarted  |                       | out of sequence,
  1917.                            |           REJ 5       | and reject issued
  1918.             T25 stopped    |<----------------------|
  1919.                            |                       |
  1920.             T25 started,   | Data 1,5              |
  1921.             retransmission |---------------------->|
  1922.             starts with    | Data 1,6              |
  1923.             packet 5       |---------------------->|
  1924.                            |                       |
  1925.                            |                       |
  1926.  
  1927.                 Figure 7  Timer Recovery from Loss of Last Packet Sent
  1928.                 __________in a Window with More Packets to Send_______
  1929.  
  1930.  
  1931.             4.3.5 Duplicate Packets                  _________________
  1932.  
  1933.             Duplicate  packets are  discarded and  the DXE  sends a  reject
  1934.             packet to indicate the next P(S) expected.  See Figure 3.
  1935.  
  1936.  
  1937.             SECTION 4.4 Packet Format Introduction            _______________
  1938.  
  1939.             A packet always  includes the general format  identifier field,
  1940.             the logical channel identifier field,  the packet sequence num-
  1941.             ber(s), and the packet type identifier field.  Depending on the
  1942.             particular packet type, other fields may also be defined.  (See
  1943.             Section 4.1.3.)
  1944.  
  1945.  
  1946.  
  1947.  
  1948.                                   PACKET LAYER LOGICAL INTERFACE    Page 22
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.             X.PC Protocol Specification                   September 8, 1983
  1959.  
  1960.  
  1961.             The possible extension of packet formats by the addition of new
  1962.             fields  requires  further  study.   Any  such  field  would  be
  1963.             included  only  as  an addition  that  follows  all  previously
  1964.             defined fields and not as an insertion  between any of the pre-
  1965.             viously defined fields.  It would be  transmitted to a DTE only
  1966.             when the interfacing  DXE has been informed  that the receiving
  1967.             DTE is able  to interpret this field  and act  upon it  or when
  1968.             the  receiving  DTE  can ignore  the  field  without  adversely
  1969.             affecting the operation  of the interfacing DXE.   It would not
  1970.             contain any information pertaining to  a user facility to which
  1971.             the DTE has not subscribed.
  1972.  
  1973.             The bits of  an octet are numbered 8  to 1, where bit  1 is the
  1974.             low order bit and is transmitted first.  Octets of a packet are
  1975.             consecutively numbered from 1 and are transmitted in order.
  1976.  
  1977.  
  1978.             4.4.1 General Format Identifier Field                  __________
  1979.  
  1980.             The general  format identifier field  is a 4-bit,  binary coded
  1981.             field that  indicates the  general format  of the  rest of  the
  1982.             header.  The general format identifier  field comprises bits 8,
  1983.             7, 6, and 5  of octet 1, where bit 5 is the  low order bit (see
  1984.             Table 3).
  1985.  
  1986.             Bit 8 of the general format identifier  is set to 0 to indicate
  1987.             a data packet; it  is set to 1 for all  other packets.  Bits 7,
  1988.             6, and 5 of the data packet  are used for the D bit, Q bit, and
  1989.             M bit respectively (see Section 4.6.1).
  1990.  
  1991.             Bits 7, 6, and 5 of all other packets are set to 1.
  1992.  
  1993.  
  1994.                                         Table 3
  1995.  
  1996.                                General Format Identifier
  1997.  
  1998.                         |-------------------------------------|
  1999.                         |                     |    Octet 1    |
  2000.                         |                     |     Bits      |
  2001.                         |                     | 8   7   6   5 |
  2002.                         |---------------------|---------------|
  2003.                         |  Data packets       | 0   D   Q   M |
  2004.                         |---------------------|---------------|
  2005.                         |  All other packets  | 1   0   0   0 |
  2006.                         |-------------------------------------|
  2007.  
  2008.  
  2009.  
  2010.  
  2011.                                   PACKET LAYER LOGICAL INTERFACE    Page 23
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.             X.PC Protocol Specification                   September 8, 1983
  2022.  
  2023.  
  2024.             4.4.2 Logical Channel Identifier Field                  _________
  2025.  
  2026.             The logical channel identifier field appears in every packet in
  2027.             bit positions 4, 3,  2, and 1 of octet 1.   The field is binary
  2028.             coded, and bit 1 is the low order bit.
  2029.  
  2030.             For each logical channel, this number has local significance at
  2031.             the DTE/DCE interface.
  2032.  
  2033.             In restart  and diagnostic packets all  bits in this  field are
  2034.             set to 0's.
  2035.  
  2036.  
  2037.             4.4.3 Packet Receive Sequence Number Field                  _____
  2038.  
  2039.             The  packet receive  sequence  number  field appears  in  every
  2040.             packet in bit positions  8, 7, 6, and 5 of  octet 2.  The field
  2041.             is binary coded, and bit 5 is the low order bit.
  2042.  
  2043.             In the restart request and  restart indication packets all bits
  2044.             in this field are set to 0.
  2045.  
  2046.  
  2047.             4.4.4 Packet Send Sequence Number Field                  ________
  2048.  
  2049.             The packet send  sequence number field appears  in every packet
  2050.             in bit  positions 4,  3, 2,  and 1  of octet  2.  The  field is
  2051.             binary coded, and bit 1 is the low order bit.
  2052.  
  2053.             In the  restart request, restart  indication, RR, RNR,  and REJ
  2054.             packets all bits in this field are set to 0.
  2055.  
  2056.  
  2057.             4.4.5 Packet Type Identifier Field                  _____________
  2058.  
  2059.             Packets with bit  8 of the general format identifier  set to 1,
  2060.             i.e., all  packets other than  data packets, are  identified in
  2061.             octet 3 as specified in Table 4.
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.                                   PACKET LAYER LOGICAL INTERFACE    Page 24
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.             X.PC Protocol Specification                   September 8, 1983
  2085.  
  2086.  
  2087.                                         Table 4
  2088.  
  2089.                                 Packet Type Identifier
  2090.  
  2091.           |------------------------------------------------------------------|
  2092.           |                   Packet Type                  |     Octet 3     |
  2093.           |                                                |      Bits       |
  2094.           | From DXE to DTE         From DTE to DXE        | 8 7 6 5 4 3 2 1 |
  2095.           |------------------------------------------------|-----------------|
  2096.           |           Call Setup and Call Clearing         |                 |
  2097.           |                                                |                 |
  2098.           | Incoming call           Call request           | 0 0 0 0 1 0 1 1 |
  2099.           | Call connected          Call accepted          | 0 0 0 0 1 1 1 1 |
  2100.           | Clear indication        Clear request          | 0 0 0 1 0 0 1 1 |
  2101.           | Clear confirmation      Clear confirmation     | 0 0 0 1 0 1 1 1 |
  2102.           |                                                |                 |
  2103.           |                DATA and Interrupt              |                 |
  2104.           |                                                |        (Note 2) |
  2105.           | Data (Note 1)           Data                   | X X X X X X X X |
  2106.           | Interrupt               Interrupt              | 0 0 1 0 0 0 1 1 |
  2107.           | Interrupt confirmation  Interrupt confirmation | 0 0 1 0 0 1 1 1 |
  2108.           |                                                |                 |
  2109.           |              Flow Control and Reset            |                 |
  2110.           |                                                |                 |
  2111.           | Receive ready           Receive ready          | 0 0 0 0 0 0 0 1 |
  2112.           | Receive not ready       Receive not ready      | 0 0 0 0 0 1 0 1 |
  2113.           | Reject                  Reject                 | 0 0 0 0 1 0 0 1 |
  2114.           | Reset indication        Reset request          | 0 0 0 1 1 0 1 1 |
  2115.           | Reset confirmation      Reset confirmation     | 0 0 0 1 1 1 1 1 |
  2116.           |                                                |                 |
  2117.           |                     Restart                    |                 |
  2118.           |                                                |                 |
  2119.           | Restart indication      Restart request        | 1 1 1 1 1 0 1 1 |
  2120.           | Restart confirmation    Restart confirmation   | 1 1 1 1 1 1 1 1 |
  2121.           |                                                |                 |
  2122.           |                    Diagnostic                  |                 |
  2123.           |                                                |                 |
  2124.           | Diagnostic              Diagnostic             | 1 1 1 1 0 0 0 1 |
  2125.           | (Notes 3,4)             (Note 4)               |                 |
  2126.           |------------------------------------------------------------------|
  2127.           Note 1: Octet 3 of the data packet contains one octet of user data.
  2128.           Note 2: An X  bit may be set  either to 0  or to 1, as  discussed in
  2129.                   subsequent sections.
  2130.           Note 3: DCE to DTE, if implemented by the network.
  2131.           Note 4: A DTE  may originate a diagnostic  packet only in  a DTE/DTE
  2132.                   environment and only if it  can be suppressed when connected
  2133.                   to a network.
  2134.  
  2135.  
  2136.  
  2137.                                   PACKET LAYER LOGICAL INTERFACE    Page 25
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.             X.PC Protocol Specification                   September 8, 1983
  2148.  
  2149.  
  2150.             SECTION 4.5 Call Setup and Call Clearing Packet Formats
  2151.  
  2152.             The packets described in  this section set up and  clear a vir-
  2153.             tual call.
  2154.  
  2155.  
  2156.             4.5.1 Call Request and Incoming Call Packets                  ___
  2157.  
  2158.             Figure 8 illustrates  the format of  call request  and incoming
  2159.             call packets.
  2160.  
  2161.             In a DTE/DCE environment, call request  and incoming call pack-
  2162.             ets are  separate packets because  of the  intervening network.
  2163.             However, in a DTE/DTE environment, the call request packet sent
  2164.             by one DTE is the same as  the incoming call packet received by
  2165.             the other DTE.
  2166.  
  2167.             The first three  octets consist of  the general  format identi-
  2168.             fier,  the  logical  channel  identifier,  the  packet  receive
  2169.             sequence  number, the  packet  send  sequence number,  and  the
  2170.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  2171.             4.4.5).
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.                                   PACKET LAYER LOGICAL INTERFACE    Page 26
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.             X.PC Protocol Specification                   September 8, 1983
  2211.  
  2212.  
  2213.  
  2214.  
  2215.                                           Bits
  2216.                              8   7   6   5   4   3   2   1
  2217.                     Octet  .---.---.---.---.---.---.---.---.
  2218.                            |     G F I     |     L C I     |
  2219.                       1    |    (Note 1)   |               |
  2220.                            |---:---:---:---:---:---:---:---|
  2221.                            |    P(R)       |    P(S)       |
  2222.                       2    |               |               |
  2223.                            |---:---:---:---:---:---:---:---|
  2224.                            |    Packet type identifier     |
  2225.                       3    | 0   0   0   0   1   0   1   1 |
  2226.                            |---:---:---:---:---:---:---:---|
  2227.                            |  Calling DTE  :  Called DTE   |
  2228.                       4    | address length: address length|
  2229.                            |---:---:---:---:---:---:---:---|
  2230.                            |        DTE address(es)        |
  2231.                            //          (Note 2)           //
  2232.                            |               :---:---:---:---|
  2233.                            |               | 0   0   0   0 |
  2234.                            |---:---:---:---:---:---:---:---|
  2235.                            | 0   0 |   Facility length     |
  2236.                            |       |                       |
  2237.                            |---:---:---:---:---:---:---:---|
  2238.                            |          Facilities           |
  2239.                            //          (Note 3)           //
  2240.                            |                               |
  2241.                            :---:---:---:---:---:---:---:---:
  2242.                            |       Call user data          |
  2243.                            //      (Notes 4 and 5)        //
  2244.                            |                               |
  2245.                            :---:---:---:---:---:---:---:---:
  2246.  
  2247.             Note 1: Coded 1000
  2248.             Note 2: The  figure  is  drawn assuming  the  total  number  of
  2249.                     address digits present is odd.
  2250.             Note 3: The  maximum  length  of the  facilities  field  is  63
  2251.                     octets.
  2252.             Note 4: Bits 8 and 7  of the first octet of call  user data may
  2253.                     have particular significance (see Section 4.5.1).
  2254.             Note 5: The maximum  length of the call  user data field  is 16
  2255.                     octets.
  2256.  
  2257.                 Figure 8  Call Request and Incoming Call Packet Format
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.                                   PACKET LAYER LOGICAL INTERFACE    Page 27
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.             X.PC Protocol Specification                   September 8, 1983
  2274.  
  2275.  
  2276.             Address Lengths Field            _____________________
  2277.  
  2278.             Octet 4 consists of field length  indicators for the called and
  2279.             calling DTE addresses.  Bits 4, 3, 2, and 1 indicate the length
  2280.             of the  called DTE address  in quartets.  Bits  8, 7, 6,  and 5
  2281.             indicate the  length of  the calling  DTE address  in quartets.
  2282.             Each address length  indicator is binary coded, and bit  1 or 5
  2283.             is the low order bit of the indicator.
  2284.  
  2285.  
  2286.             Address Field            _____________
  2287.  
  2288.             Octet 5 and subsequent octets consist of the called DTE address
  2289.             when present, then the calling DTE address when present.
  2290.  
  2291.             Each digit of an address is coded  in a quartet in binary coded
  2292.             decimal, when bit 5 or 1 is the low order bit of the digit.
  2293.  
  2294.             Starting from  the high  order digit, the  address is  coded in
  2295.             octet 5 and consecutive octets, with  two digits per octet.  In
  2296.             each octet, the  higher order digit is  coded in bits 8,  7, 6,
  2297.             and 5.
  2298.  
  2299.             The field will be rounded up to an integral number of octets by
  2300.             inserting 0's in bits  4, 3, 2, and 1 of the  last octet of the
  2301.             field.
  2302.  
  2303.             This field may be used  for optional addressing facilities such
  2304.             as abbreviated addressing.  The  optional addressing facilities
  2305.             employed and  the coding  of those  facilities require  further
  2306.             study.
  2307.  
  2308.  
  2309.             Facility Length Field            _____________________
  2310.  
  2311.             Bits 6, 5,  4, 3, 2, and  1 of the octet  following the calling
  2312.             DTE address field  (or calling DTE address field  length if the
  2313.             calling DTE address  field length is zero)  indicate the length
  2314.             of the facility fields, in octets.  The facility-length indica-
  2315.             tor is binary  coded, where bit 1  is the low order  bit of the
  2316.             indicator.
  2317.  
  2318.             Bits 8 and 7 of this octet are unassigned and are set to 0.
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.                                   PACKET LAYER LOGICAL INTERFACE    Page 28
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336.             X.PC Protocol Specification                   September 8, 1983
  2337.  
  2338.  
  2339.             Facility Field            ______________
  2340.  
  2341.             The facility field is  present only if the DTE or  DXE is using
  2342.             an optional user facility requiring some indication in the call
  2343.             request packet or the incoming call packet.
  2344.  
  2345.             The facility field contains an  integral number of octets.  The
  2346.             maximum length of this field depends on the facilities that are
  2347.             supported at the DTE/DXE interface.  However, this maximum can-
  2348.             not exceed 63 octets.
  2349.  
  2350.             For further information see Sections 4.12 and 4.13.
  2351.  
  2352.  
  2353.             Call User Data Field            ____________________
  2354.  
  2355.             Following the facility  field, the call user data  field may be
  2356.             present.  It  has a  maximum length of  16 octets.   This field
  2357.             must contain an integral number of octets (see Section 4.1.3).
  2358.  
  2359.             If the call user  data field is present, the use  and format of
  2360.             the field are determined by bits 8  and 7 of the first octet of
  2361.             this field.  When  a virtual call is  being established between
  2362.             two packet mode DTEs,  the network does not act on  any part of
  2363.             the call user data field unless required  to do so by an appro-
  2364.             priate  request for  an optional  user facility  on a  per-call
  2365.             basis.  Such a facility requires further study.
  2366.  
  2367.             If bits 8 and 7 of the first  octet of the call user data field
  2368.             are 00, a portion of the call user  data field is used for pro-
  2369.             tocol identification in accordance with other CCITT recommenda-
  2370.             tions such as X.29.
  2371.  
  2372.             If bits 8 and 7 of the first  octet of the call user data field
  2373.             are 01, a portion  of the call user data field  may be used for
  2374.             protocol identification  in accordance  with specifications  of
  2375.             public network administrations.
  2376.  
  2377.             If bits 8 and 7 of the first  octet of the call user data field
  2378.             are 10, a portion  of the call user data field  may be used for
  2379.             protocol identification  in accordance with  the specifications
  2380.             of international user bodies.
  2381.  
  2382.             If bits 8 and 7 of the first  octet of the call user data field
  2383.             are 11, no constraints are placed  on the DTE regarding the use
  2384.             of the remainder of the call user data field.
  2385.  
  2386.  
  2387.  
  2388.  
  2389.                                   PACKET LAYER LOGICAL INTERFACE    Page 29
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.  
  2399.             X.PC Protocol Specification                   September 8, 1983
  2400.  
  2401.  
  2402.             If bits 8 and 7 of the first  octet of the call user data field
  2403.             have any value other than 11, a protocol may be identified that
  2404.             is implemented in public data networks.
  2405.  
  2406.  
  2407.             4.5.2 Call Accepted and Call Connected Packets                  _
  2408.  
  2409.             Figure 9 illustrates the format of call  accepted and call con-
  2410.             nected packets.
  2411.  
  2412.             In  a DTE/DCE  environment, call  accepted  and call  connected
  2413.             packets are separate  packets because  of the  intervening net-
  2414.             work.  However,  in a  DTE/DTE environment,  the call  accepted
  2415.             packet sent by one DTE is the same as the call connected packet
  2416.             received by the other DTE.
  2417.  
  2418.             The first three  octets consist of  the general  format identi-
  2419.             fier,  the  logical  channel  identifier,  the  packet  receive
  2420.             sequence  number, the  packet  send  sequence number,  and  the
  2421.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  2422.             4.4.5).
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.                                   PACKET LAYER LOGICAL INTERFACE    Page 30
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.             X.PC Protocol Specification                   September 8, 1983
  2463.  
  2464.  
  2465.  
  2466.  
  2467.                                           Bits
  2468.                              8   7   6   5   4   3   2   1
  2469.                     Octet  .---.---.---.---.---.---.---.---.
  2470.                            |     G F I     |     L C I     |
  2471.                       1    |    (Note 1)   |               |
  2472.                            |---:---:---:---:---:---:---:---|
  2473.                            |    P(R)       |    P(S)       |
  2474.                       2    |               |               |
  2475.                            |---:---:---:---:---:---:---:---|
  2476.                            |    Packet type identifier     |
  2477.                       3    | 0   0   0   0   1   1   1   1 |
  2478.                            |---:---:---:---:---:---:---:---|
  2479.                            |  Calling DTE  :  Called DTE   |
  2480.                       4    | address length: address length|
  2481.                            |---:---:---:---:---:---:---:---|
  2482.                            |        DTE address(es)        |
  2483.                            //          (Note 2)           //
  2484.                            |               :---:---:---:---|
  2485.                            |               | 0   0   0   0 |
  2486.                            |---:---:---:---:---:---:---:---|
  2487.                            | 0   0 |   Facility length     |
  2488.                            |       |                       |
  2489.                            |---:---:---:---:---:---:---:---|
  2490.                            |          Facilities           |
  2491.                            //          (Note 3)           //
  2492.                            |                               |
  2493.                            :---:---:---:---:---:---:---:---:
  2494.                            |       Call user data          |
  2495.                            //      (Notes 4 and 5)        //
  2496.                            |                               |
  2497.                            :---:---:---:---:---:---:---:---:
  2498.  
  2499.             Note 1: Coded 1000
  2500.             Note 2: The  figure  is  drawn assuming  the  total  number  of
  2501.                     address digits present is odd.
  2502.             Note 3: The  maximum  length  of the  facilities  field  is  63
  2503.                     octets.
  2504.             Note 4: Bits 8 and 7  of the first octet of call  user data may
  2505.                     have particular significance (see Section 4.5.1).
  2506.             Note 5: The maximum  length of the call  user data field  is 16
  2507.                     octets.
  2508.  
  2509.                Figure 9  Call Accepted and Call Connected Packet Format
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.                                   PACKET LAYER LOGICAL INTERFACE    Page 31
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.             X.PC Protocol Specification                   September 8, 1983
  2526.  
  2527.  
  2528.             Address Lengths Field            _____________________
  2529.  
  2530.             Octet 4 consists of field length  indicators for the called and
  2531.             calling DTE addresses.  Bits 4, 3, 2, and 1 indicate the length
  2532.             of the  called DTE address  in quartets.  Bits  8, 7, 6,  and 5
  2533.             indicate the  length of  the calling  DTE address  in quartets.
  2534.             Each address length  indicator is binary coded, and bit  1 or 5
  2535.             is the low order bit of the indicator.
  2536.  
  2537.  
  2538.             Address Field            _____________
  2539.  
  2540.             Octet 5 and subsequent octets consist of the called DTE address
  2541.             when present, then the calling DTE address when present.
  2542.  
  2543.             Each digit of an address is coded  in a quartet in binary coded
  2544.             decimal, when bit 5 or 1 is the low order bit of the digit.
  2545.  
  2546.             Starting from  the high  order digit, the  address is  coded in
  2547.             octet 5 and consecutive octets, with  two digits per octet.  In
  2548.             each octet, the  higher order digit is  coded in bits 8,  7, 6,
  2549.             and 5.
  2550.  
  2551.             The field will be rounded up to an integral number of octets by
  2552.             inserting 0's in bits  4, 3, 2, and 1 of the  last octet of the
  2553.             field.
  2554.  
  2555.             This field may be used  for optional addressing facilities such
  2556.             as abbreviated addressing.  The  optional addressing facilities
  2557.             employed and  the coding  of those  facilities require  further
  2558.             study.
  2559.  
  2560.  
  2561.             Facility Length Field            _____________________
  2562.  
  2563.             Bits 6, 5,  4, 3, 2, and  1 of the octet  following the calling
  2564.             DTE address field  (or calling DTE address field  length if the
  2565.             calling DTE address  field length is zero)  indicate the length
  2566.             of the facility fields, in octets.  The facility-length indica-
  2567.             tor is binary  coded, where bit 1  is the low order  bit of the
  2568.             indicator.
  2569.  
  2570.             Bits 8 and 7 of this octet are unassigned and are set to 0.
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.                                   PACKET LAYER LOGICAL INTERFACE    Page 32
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.             X.PC Protocol Specification                   September 8, 1983
  2589.  
  2590.  
  2591.             Facility Field            ______________
  2592.  
  2593.             The facility field is  present only if the DTE or  DXE is using
  2594.             an optional user facility requiring some indication in the call
  2595.             request packet or the incoming call packet.
  2596.  
  2597.             The facility field contains an  integral number of octets.  The
  2598.             maximum length of this field depends on the facilities that are
  2599.             supported at the DTE/DXE interface.  However, this maximum can-
  2600.             not exceed 63 octets.
  2601.  
  2602.             For further information, see Sections 4.12 and 4.13.
  2603.  
  2604.  
  2605.             4.5.3 Clear Request and Clear Indication Packets
  2606.  
  2607.             Figure 10 illustrates  the format  of clear  request and  clear
  2608.             indication packets.
  2609.  
  2610.             In a  DTE/DCE environment, clear  request and  clear indication
  2611.             packets are separate  packets because  of the  intervening net-
  2612.             work.  However, in  a DTE/DTE  environment,  the clear  request
  2613.             packet sent  by one  DTE is  the same  as the  clear indication
  2614.             packet received by the other DTE.
  2615.  
  2616.             The first three  octets consist of  the general  format identi-
  2617.             fier,  the  logical  channel  identifier,  the  packet  receive
  2618.             sequence  number, the  packet  send  sequence number,  and  the
  2619.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  2620.             4.4.5).
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.                                   PACKET LAYER LOGICAL INTERFACE    Page 33
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.  
  2651.             X.PC Protocol Specification                   September 8, 1983
  2652.  
  2653.  
  2654.  
  2655.  
  2656.                                           Bits
  2657.                              8   7   6   5   4   3   2   1
  2658.                     Octet  .---.---.---.---.---.---.---.---.
  2659.                            |     G F I     |     L C I     |
  2660.                       1    |    (Note 1)   |               |
  2661.                            |---:---:---:---:---:---:---:---|
  2662.                            |    P(R)       |    P(S)       |
  2663.                       2    |               |               |
  2664.                            |---:---:---:---:---:---:---:---|
  2665.                            |    Packet type identifier     |
  2666.                       3    | 0   0   0   1   0   0   1   1 |
  2667.                            |---:---:---:---:---:---:---:---|
  2668.                            |      Clearing cause           |
  2669.                       4    |                               |
  2670.                            |---:---:---:---:---:---:---:---|
  2671.                            |      Diagnostic code          |
  2672.                       5    |          (Note 3)             |
  2673.                            |---:---:---:---:---:---:---:---|
  2674.  
  2675.             Note 1: Coded 1000
  2676.             Note 2: Address format default is CCITT X.121.
  2677.             Note 3: Diagnostic code is optional
  2678.  
  2679.               Figure 10  Clear Request and Clear Indication Packet Format
  2680.  
  2681.  
  2682.             Clearing Cause Field            ____________________
  2683.  
  2684.             Octet 4 is the clearing cause field; it contains the reason for
  2685.             the clearing of the call.
  2686.  
  2687.             The bits of the clearing cause  field in a clear request packet
  2688.             must be set to 0 by a DTE.  Further study is required to deter-
  2689.             mine whether other  values of these  bits are ignored  or proc-
  2690.             essed by the DCE in a DTE/DCE environment.
  2691.  
  2692.             The coding  of the clearing cause  field in a  clear indication
  2693.             packet is defined  in CCITT recommendation X.96.   In a DTE/DCE
  2694.             environment, a DTE,  to allow for possible  later extensions of
  2695.             the defined values of the clearing cause field, must be able to
  2696.             accept any  value in  the clearing cause  field.  In  a DTE/DTE
  2697.             environment, a  DTE may either  accommodate a  nonzero clearing
  2698.             cause field as it does in  a DTE/DCE environment (i.e., process
  2699.             the packet  normally) or treat it  as an error.  In  the latter
  2700.             case, the packet layer transmits a  clear request packet with a
  2701.  
  2702.  
  2703.  
  2704.                                   PACKET LAYER LOGICAL INTERFACE    Page 34
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.             X.PC Protocol Specification                   September 8, 1983
  2715.  
  2716.  
  2717.             cause indicating  'DTE Originated' and the  diagnostic 'Nonzero
  2718.             Cause Field from DTE.'
  2719.  
  2720.  
  2721.             Diagnostic Code Field            _____________________
  2722.  
  2723.             Octet 5  is the diagnostic  code field; it  contains additional
  2724.             information regarding the reason for  the clearing of the call.
  2725.             The coding of the diagnostic code field follows CCITT X.25 rec-
  2726.             ommendations.
  2727.  
  2728.             In  a  clear  request  packet, the  diagnostic  code  field  is
  2729.             required, even if it indicates no additional information.
  2730.  
  2731.             In a clear indication packet, if the clearing cause field indi-
  2732.             cates  'DTE Originated,'  the diagnostic  code  field has  been
  2733.             passed unchanged from the remote DTE  as a result of its having
  2734.             initiated either a clearing procedure or, in a DTE/DCE environ-
  2735.             ment, a restarting procedure.  In a clear indication packet, if
  2736.             the clearing  cause field does  not indicate  'DTE Originated,'
  2737.             the diagnostic code field is network generated.
  2738.  
  2739.             The contents  of the  diagnostic code  field do  not alter  the
  2740.             meaning of the clearing cause field.   A DTE is not required to
  2741.             undertake any  action on  the contents  of the  diagnostic code
  2742.             field.  The clearing  cause field must be accepted  even if the
  2743.             diagnostic code field contains an unspecified code combination.
  2744.  
  2745.  
  2746.             4.5.4 Clear Confirmation Packet                  ________________
  2747.  
  2748.             Figure 11  illustrates the  format  of  the clear  confirmation
  2749.             packet transmitted by a DTE and the format of the clear confir-
  2750.             mation packet received by a DTE.
  2751.  
  2752.             The first three  octets consist of  the general  format identi-
  2753.             fier,  the  logical  channel  identifier,  the  packet  receive
  2754.             sequence  number, the  packet  send  sequence number,  and  the
  2755.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  2756.             4.4.5).
  2757.  
  2758.  
  2759.  
  2760.  
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.                                   PACKET LAYER LOGICAL INTERFACE    Page 35
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.             X.PC Protocol Specification                   September 8, 1983
  2778.  
  2779.  
  2780.  
  2781.  
  2782.                                           Bits
  2783.                              8   7   6   5   4   3   2   1
  2784.                     Octet  .---.---.---.---.---.---.---.---.
  2785.                            |     G F I     |     L C I     |
  2786.                       1    |    (Note 1)   |               |
  2787.                            |---:---:---:---:---:---:---:---|
  2788.                            |    P(R)       |    P(S)       |
  2789.                       2    |               |               |
  2790.                            |---:---:---:---:---:---:---:---|
  2791.                            |    Packet type identifier     |
  2792.                       3    | 0   0   0   1   0   1   1   1 |
  2793.                            |---:---:---:---:---:---:---:---|
  2794.  
  2795.                            Note 1: Coded 1000
  2796.  
  2797.                       Figure 11  Clear Confirmation Packet Format
  2798.  
  2799.  
  2800.             SECTION 4.6 Data and Interrupt Packet Formats            ________
  2801.  
  2802.             The data, interrupt, and interrupt  confirmation packets trans-
  2803.             mit data or are used with the interrupt procedure.
  2804.  
  2805.  
  2806.             4.6.1 Data Packet                  ___________
  2807.  
  2808.             Figure 12 illustrates the format of the data packet transmitted
  2809.             by a DXE and the format of the data packet received by a DXE.
  2810.  
  2811.             The first three  octets consist of  the general  format identi-
  2812.             fier,  the  logical  channel  identifier,  the  packet  receive
  2813.             sequence number,  and the  packet send  sequence number  fields
  2814.             (see Sections 4.4.1 through 4.4.5).  The 0 in bit 8 of the gen-
  2815.             eral format identifier distinguishes the data packet from other
  2816.             packet types;  the remainder of  the general  format identifier
  2817.             field is used as noted below.
  2818.  
  2819.             Bit  7  of  octet  1 is  the  delivery  confirmation  (D)  bit.
  2820.             Although the D bit  is specified, D bit procedures  are not yet
  2821.             specified.  The procedures require further study.
  2822.  
  2823.             Bit 6 of octet 1 is the  more data mark (M bit).  A 0 indicates
  2824.             no more data; a 1 indicates more data.
  2825.  
  2826.             Bit 5 of octet 1 is the qualifier (Q) bit.
  2827.  
  2828.  
  2829.  
  2830.                                   PACKET LAYER LOGICAL INTERFACE    Page 36
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.             X.PC Protocol Specification                   September 8, 1983
  2841.  
  2842.  
  2843.             Octets following  octet 2 contain  user data.  This  field must
  2844.             contain an  integral number  of octets,  to the  stated maximum
  2845.             (see Section 4.1.3).  The field must contain at least one octet
  2846.             of user data.
  2847.  
  2848.  
  2849.                                           Bits
  2850.                              8   7   6   5   4   3   2   1
  2851.                     Octet  .---.---.---.---.---.---.---.---.
  2852.                            |     G F I     |     L C I     |
  2853.                       1    |    (Note 1)   |               |
  2854.                            |---:---:---:---:---:---:---:---|
  2855.                            |    P(R)       |    P(S)       |
  2856.                       2    |               |               |
  2857.                            |---:---:---:---:---:---:---:---|
  2858.                            |          User data            |
  2859.                            //                             //
  2860.                            |                               |
  2861.                            |---:---:---:---:---:---:---:---|
  2862.  
  2863.             Note 1: Coded 0DQM, where D = D bit, Q = Q bit, and M = M bit
  2864.  
  2865.                              Figure 12  Data Packet Format
  2866.  
  2867.  
  2868.             4.6.2 Interrupt Packet                  ________________
  2869.  
  2870.             Figure 13 illustrates the format of the interrupt packet trans-
  2871.             mitted by a DXE and the format of the interrupt packet received
  2872.             by a DXE.
  2873.  
  2874.             The first three  octets consist of  the general  format identi-
  2875.             fier,  the  logical  channel  identifier,  the  packet  receive
  2876.             sequence  number, the  packet  send  sequence number,  and  the
  2877.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  2878.             4.4.5).
  2879.  
  2880.             Octet 4 contains the one octet of interrupt user data.
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.                                   PACKET LAYER LOGICAL INTERFACE    Page 37
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.             X.PC Protocol Specification                   September 8, 1983
  2904.  
  2905.  
  2906.  
  2907.  
  2908.                                           Bits
  2909.                              8   7   6   5   4   3   2   1
  2910.                     Octet  .---.---.---.---.---.---.---.---.
  2911.                            |     G F I     |     L C I     |
  2912.                       1    |    (Note 1)   |               |
  2913.                            |---:---:---:---:---:---:---:---|
  2914.                            |    P(R)       |    P(S)       |
  2915.                       2    |               |               |
  2916.                            |---:---:---:---:---:---:---:---|
  2917.                            |    Packet type identifier     |
  2918.                       3    | 0   0   1   0   0   0   1   1 |
  2919.                            |---:---:---:---:---:---:---:---|
  2920.                            |      Interrupt user data      |
  2921.                       4    |                               |
  2922.                            |---:---:---:---:---:---:---:---|
  2923.  
  2924.                            Note 1: Coded 1000
  2925.  
  2926.                           Figure 13  Interrupt Packet Format
  2927.  
  2928.  
  2929.             4.6.3 Interrupt Confirmation Packet                  ____________
  2930.  
  2931.             Figure 14 illustrates the format  of the interrupt confirmation
  2932.             packet transmitted  by a  DXE and the  format of  the interrupt
  2933.             confirmation packet received by a DXE.
  2934.  
  2935.             The first three  octets consist of  the general  format identi-
  2936.             fier,  the  logical  channel  identifier,  the  packet  receive
  2937.             sequence  number, the  packet  send  sequence number,  and  the
  2938.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  2939.             4.4.5).
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.                                   PACKET LAYER LOGICAL INTERFACE    Page 38
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.             X.PC Protocol Specification                   September 8, 1983
  2967.  
  2968.  
  2969.  
  2970.  
  2971.                                           Bits
  2972.                              8   7   6   5   4   3   2   1
  2973.                     Octet  .---.---.---.---.---.---.---.---.
  2974.                            |     G F I     |     L C I     |
  2975.                       1    |    (Note 1)   |               |
  2976.                            |---:---:---:---:---:---:---:---|
  2977.                            |    P(R)       |    P(S)       |
  2978.                       2    |               |               |
  2979.                            |---:---:---:---:---:---:---:---|
  2980.                            |    Packet type identifier     |
  2981.                       3    | 0   0   1   0   0   1   1   1 |
  2982.                            |---:---:---:---:---:---:---:---|
  2983.                       4    |      Interrupt user data      |
  2984.                            |---:---:---:---:---:---:---:---|
  2985.  
  2986.                            Note 1: Coded 1000
  2987.  
  2988.                     Figure 14  Interrupt Confirmation Packet Format
  2989.  
  2990.  
  2991.             SECTION 4.7 Flow Control Packet Formats            ______________
  2992.  
  2993.             The receive  ready and  receive not  ready packets  control the
  2994.             flow of data packets (The data and reject packets, described in
  2995.             Sections 4.6.1 and 4.11 respectively, also  control the flow of
  2996.             data packets.)
  2997.  
  2998.  
  2999.             4.7.1 Receive Ready Packet                  ____________________
  3000.  
  3001.             Figure 15 illustrates  the format of  the receive  ready packet
  3002.             transmitted by a DXE and the format of the receive ready packet
  3003.             received by a DXE.
  3004.  
  3005.             The first three  octets consist of  the general  format identi-
  3006.             fier,  the  logical  channel  identifier,  the  packet  receive
  3007.             sequence  number, the  packet  send  sequence number,  and  the
  3008.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3009.             4.4.5).
  3010.  
  3011.             Bits 8,  7, 6,  and 5 of  octet 2  indicate the  packet receive
  3012.             sequence number P(R).  P(R) is binary coded, where bit 5 is the
  3013.             low order bit.
  3014.  
  3015.             Bits 4, 3, 2, and 1 of octet 2 are set to 0.
  3016.  
  3017.  
  3018.  
  3019.                                   PACKET LAYER LOGICAL INTERFACE    Page 39
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.             X.PC Protocol Specification                   September 8, 1983
  3030.  
  3031.  
  3032.  
  3033.  
  3034.                                           Bits
  3035.                              8   7   6   5   4   3   2   1
  3036.                     Octet  .---.---.---.---.---.---.---.---.
  3037.                            |     G F I     |     L C I     |
  3038.                       1    |    (Note 1)   |               |
  3039.                            |---:---:---:---:---:---:---:---|
  3040.                            |    P(R)       |   Reserved    |
  3041.                       2    |               |               |
  3042.                            |---:---:---:---:---:---:---:---|
  3043.                            |    Packet type identifier     |
  3044.                       3    | 0   0   0   0   0   0   0   1 |
  3045.                            |---:---:---:---:---:---:---:---|
  3046.  
  3047.                            Note 1: Coded 1000
  3048.  
  3049.                         Figure 15  Receive Ready Packet Format
  3050.  
  3051.  
  3052.             4.7.2 Receive Not Ready Packet                  _________________
  3053.  
  3054.             Figure 16  illustrates the  format  of  the receive  not  ready
  3055.             packet transmitted by  a DXE and the format of  the receive not
  3056.             ready packet received by a DXE.
  3057.  
  3058.             The first three  octets consist of  the general  format identi-
  3059.             fier,  the  logical  channel  identifier,  the  packet  receive
  3060.             sequence  number, the  packet  send  sequence number,  and  the
  3061.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3062.             4.4.5).
  3063.  
  3064.             Bits 8,  7, 6,  and 5 of  octet 2  indicate the  packet receive
  3065.             sequence number P(R).  P(R) is binary coded, where bit 5 is the
  3066.             low order bit.
  3067.  
  3068.             Bits 4, 3, 2, and 1 of octet 2 are set to 0.
  3069.  
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.                                   PACKET LAYER LOGICAL INTERFACE    Page 40
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.             X.PC Protocol Specification                   September 8, 1983
  3093.  
  3094.  
  3095.  
  3096.  
  3097.                                           Bits
  3098.                              8   7   6   5   4   3   2   1
  3099.                     Octet  .---.---.---.---.---.---.---.---.
  3100.                            |     G F I     |     L C I     |
  3101.                       1    |    (Note 1)   |               |
  3102.                            |---:---:---:---:---:---:---:---|
  3103.                            |    P(R)       |   Reserved    |
  3104.                       2    |               |               |
  3105.                            |---:---:---:---:---:---:---:---|
  3106.                            |    Packet type identifier     |
  3107.                       3    | 0   0   0   0   0   1   0   1 |
  3108.                            |---:---:---:---:---:---:---:---|
  3109.  
  3110.                            Note 1: Coded 1000
  3111.  
  3112.                       Figure 16  Receive Not Ready Packet Format
  3113.  
  3114.  
  3115.             SECTION 4.8 Reset Packet Formats            _____________________
  3116.  
  3117.             The  reset request,  reset indication,  and reset  confirmation
  3118.             packets  (re)initialize the  flow of  both  data and  interrupt
  3119.             packets.
  3120.  
  3121.  
  3122.             4.8.1 Reset Request and Reset Indication Packets
  3123.  
  3124.             Figure 17 illustrates  the format  of reset  request and  reset
  3125.             indication packets.
  3126.  
  3127.             In a  DTE/DCE environment, reset  request and  reset indication
  3128.             packets are separate  packets because  of the  intervening net-
  3129.             work.  However, in  a DTE/DTE  environment,  the reset  request
  3130.             packet sent  by one  DTE is  the same  as the  reset indication
  3131.             packet received by the other DTE.
  3132.  
  3133.             The first three  octets consist of  the general  format identi-
  3134.             fier,  the  logical  channel  identifier,  the  packet  receive
  3135.             sequence  number, the  packet  send  sequence number,  and  the
  3136.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3137.             4.4.5).  However, the packet receive sequence number and packet
  3138.             send sequence number fields are set to zero.
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.                                   PACKET LAYER LOGICAL INTERFACE    Page 41
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153.  
  3154.  
  3155.             X.PC Protocol Specification                   September 8, 1983
  3156.  
  3157.  
  3158.  
  3159.  
  3160.                                           Bits
  3161.                              8   7   6   5   4   3   2   1
  3162.                     Octet  .---.---.---.---.---.---.---.---.
  3163.                            |     G F I     |     L C I     |
  3164.                       1    |    (Note 1)   |               |
  3165.                            |---:---:---:---:---:---:---:---|
  3166.                            | 0   0   0   0   0   0   0   0 |
  3167.                       2    |               |               |
  3168.                            |---:---:---:---:---:---:---:---|
  3169.                            |    Packet type identifier     |
  3170.                       3    | 0   0   0   1   1   0   1   1 |
  3171.                            |---:---:---:---:---:---:---:---|
  3172.                            |      Resetting cause          |
  3173.                       4    |                               |
  3174.                            |---:---:---:---:---:---:---:---|
  3175.                            |      Diagnostic code          |
  3176.                       5    |         (Note 2)              |
  3177.                            |---:---:---:---:---:---:---:---|
  3178.  
  3179.                            Note 1: Coded 1000
  3180.                            Note 2: Diagnostic code is optional.
  3181.  
  3182.               Figure 17  Reset Request and Reset Indication Packet Format
  3183.  
  3184.  
  3185.             Resetting Cause Field            _____________________
  3186.  
  3187.             Octet 4  is the resetting cause  field; it contains  the reason
  3188.             for the reset.
  3189.  
  3190.             The bits of the resetting cause field in a reset request packet
  3191.             must be set to 0 by a DTE.  Further study is required to deter-
  3192.             mine whether other  values of these  bits are ignored  or proc-
  3193.             essed by the DCE in a DTE/DCE environment.
  3194.  
  3195.             The coding of  the resetting cause field in  a reset indication
  3196.             packet  follows CCITT  recommendations  X.25  and X.96.   In  a
  3197.             DTE/DCE environment, a DTE, to allow  for possible later exten-
  3198.             sions of the  defined value of the resetting  cause field, must
  3199.             be able to accept any value in the resetting cause field.  In a
  3200.             DTE/DTE environment,  a DTE  may either  accommodate a  nonzero
  3201.             resetting  cause field  as  it does  in  a DTE/DCE  environment
  3202.             (i.e., process  the packet normally) or  treat it as  an error.
  3203.             In the latter case, the packet  layer transmits a reset request
  3204.             packet with a cause  indicating 'DTE Originated' and  the diag-
  3205.             nostic 'Nonzero Cause Field from DTE.'
  3206.  
  3207.  
  3208.                                   PACKET LAYER LOGICAL INTERFACE    Page 42
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218.             X.PC Protocol Specification                   September 8, 1983
  3219.  
  3220.  
  3221.             Diagnostic Code Field            _____________________
  3222.  
  3223.             Octet 5  is the diagnostic  code field; it  contains additional
  3224.             information regarding the reason for  the reset.  The coding of
  3225.             the diagnostic code field follows CCITT X.25 recommendations.
  3226.  
  3227.             In  a  reset  request  packet, the  diagnostic  code  field  is
  3228.             required, even if it indicates no additional information.
  3229.  
  3230.             In  a reset  indication packet,  if the  resetting cause  field
  3231.             indicates 'DTE Originated,' the diagnostic  code field has been
  3232.             passed unchanged from the remote DTE  as a result of its having
  3233.             initiated either a resetting  procedure or, in a  DTE/DCE envi-
  3234.             ronment, a restarting procedure.  In a reset indication packet,
  3235.             if the clearing cause field does not indicate 'DTE Originated,'
  3236.             the diagnostic code field is network generated.
  3237.  
  3238.             The contents  of the  diagnostic code  field do  not alter  the
  3239.             meaning of the resetting cause field.  A DTE is not required to
  3240.             undertake any  action on  the contents  of the  diagnostic code
  3241.             field. The resetting  cause field must be accepted  even if the
  3242.             diagnostic code field contains an unspecified code combination.
  3243.  
  3244.  
  3245.             4.8.2 Reset Confirmation Packet                  ________________
  3246.  
  3247.             Figure 18  illustrates the  format  of  the reset  confirmation
  3248.             packet transmitted by a DTE and the format of the reset confir-
  3249.             mation packet received by a DTE.
  3250.  
  3251.             The first three  octets consist of  the general  format identi-
  3252.             fier,  the  logical  channel  identifier,  the  packet  receive
  3253.             sequence  number, the  packet  send  sequence number,  and  the
  3254.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3255.             4.4.5).
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.                                   PACKET LAYER LOGICAL INTERFACE    Page 43
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.             X.PC Protocol Specification                   September 8, 1983
  3282.  
  3283.  
  3284.  
  3285.  
  3286.                                           Bits
  3287.                              8   7   6   5   4   3   2   1
  3288.                     Octet  .---.---.---.---.---.---.---.---.
  3289.                            |     G F I     |     L C I     |
  3290.                       1    |    (Note 1)   |               |
  3291.                            |---:---:---:---:---:---:---:---|
  3292.                            |    P(R)       |    P(S)       |
  3293.                       2    |               |               |
  3294.                            |---:---:---:---:---:---:---:---|
  3295.                            |    Packet type identifier     |
  3296.                       3    | 0   0   0   1   1   1   1   1 |
  3297.                            |---:---:---:---:---:---:---:---|
  3298.  
  3299.                            Note 1: Coded 1000
  3300.  
  3301.                       Figure 18  Reset Confirmation Packet Format
  3302.  
  3303.  
  3304.             SECTION 4.9 Restart Packet Formats            ___________________
  3305.  
  3306.             The restart request, restart indication,  and restart confirma-
  3307.             tion packets (re)initialize the DTE/DXE packet layer interface.
  3308.  
  3309.  
  3310.             4.9.1 Restart Request and Restart Indication Packets
  3311.  
  3312.             Figure 19 illustrates the format of restart request and restart
  3313.             indication packets.
  3314.  
  3315.             In a DTE/DCE  environment, restart request and  restart indica-
  3316.             tion packets  are separate packets  because of  the intervening
  3317.             network. However, in a DTE/DTE environment, the restart request
  3318.             packet sent  by one DTE is  the same as the  restart indication
  3319.             packet received by the other DTE.
  3320.  
  3321.             The first three  octets consist of  the general  format identi-
  3322.             fier,  the  logical  channel  identifier,  the  packet  receive
  3323.             sequence  number, the  packet  send  sequence number,  and  the
  3324.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3325.             4.4.5).   However,  the  logical   channel  identifier,  packet
  3326.             receive sequence number, and packet send sequence number fields
  3327.             are set to zero.
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.                                   PACKET LAYER LOGICAL INTERFACE    Page 44
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.             X.PC Protocol Specification                   September 8, 1983
  3345.  
  3346.  
  3347.  
  3348.  
  3349.                                           Bits
  3350.                              8   7   6   5   4   3   2   1
  3351.                     Octet  .---.---.---.---.---.---.---.---.
  3352.                            |     G F I     | 0   0   0   0 |
  3353.                       1    |    (Note 1)   |               |
  3354.                            |---:---:---:---:---:---:---:---|
  3355.                            | 0   0   0   0   0   0   0   0 |
  3356.                       2    |               |               |
  3357.                            |---:---:---:---:---:---:---:---|
  3358.                            |    Packet type identifier     |
  3359.                       3    | 1   1   1   1   1   0   1   1 |
  3360.                            |---:---:---:---:---:---:---:---|
  3361.                            |      Restarting cause         |
  3362.                       4    |                               |
  3363.                            |---:---:---:---:---:---:---:---|
  3364.                            |      Diagnostic code          |
  3365.                       5    |         (Note 2)              |
  3366.                            |---:---:---:---:---:---:---:---|
  3367.  
  3368.                            Note 1: Coded 1000
  3369.                            Note 2: Diagnostic code is optional.
  3370.  
  3371.             Figure 19  Restart Request and Restart Indication Packet Format
  3372.  
  3373.  
  3374.             Restarting Cause Field            ______________________
  3375.  
  3376.             Octet 4 is  the restarting cause field; it  contains the reason
  3377.             for the restarting of the call.
  3378.  
  3379.             The bits  of the  restarting cause field  in a  restart request
  3380.             packet must be set to 0 by a DTE.  Further study is required to
  3381.             determine whether  other values  of these  bits are  ignored or
  3382.             processed by the DCE in a DTE/DCE environment.
  3383.  
  3384.             The coding of the  restarting cause field in  a restart indica-
  3385.             tion packet is given in Table 5  (the definition of each clear-
  3386.             ing cause  code is given in  CCITT recommendation X.96).   In a
  3387.             DTE/DCE environment, a DTE, to allow  for possible later exten-
  3388.             sions of the defined values of the restarting cause field, must
  3389.             be able to accept any value  in the restarting cause field.  In
  3390.             a DTE/DTE environment,  a DTE may either  accommodate a nonzero
  3391.             restarting  cause field  as it  does in  a DTE/DCE  environment
  3392.             (i.e., process  the packet normally) or  treat it as  an error.
  3393.             In  the  latter case,  the  packet  layer transmits  a  restart
  3394.  
  3395.  
  3396.  
  3397.                                   PACKET LAYER LOGICAL INTERFACE    Page 45
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.             X.PC Protocol Specification                   September 8, 1983
  3408.  
  3409.  
  3410.             request packet with a cause indicating 'DTE Originated' and the
  3411.             diagnostic 'Nonzero Cause Field from DTE.'
  3412.  
  3413.  
  3414.                                         Table 5
  3415.  
  3416.                          Coding of the Restarting Cause Field
  3417.                          ____in Restart Indication Packets___
  3418.  
  3419.                      |------------------------------------------|
  3420.                      |                        |     Octet 3     |
  3421.                      |                        |      Bits       |
  3422.                      |                        | 8 7 6 5 4 3 2 1 |
  3423.                      |------------------------|-----------------|
  3424.                      | DTE originated         | 0 0 0 0 0 0 0 0 |
  3425.                      |------------------------|-----------------|
  3426.                      | Local procedure error  | 0 0 0 0 0 0 0 1 |
  3427.                      |------------------------|-----------------|
  3428.                      | Network congestion     | 0 0 0 0 0 0 1 1 |
  3429.                      | Network operational    | 0 0 0 0 0 1 1 1 |
  3430.                      |------------------------|-----------------|
  3431.  
  3432.             Note: Other than  the 'DTE  Originated' restarting  cause code,
  3433.                   the remaining codes in the table  apply only to a DTE/DCE
  3434.                   environment.
  3435.  
  3436.  
  3437.             Diagnostic Code Field            _____________________
  3438.  
  3439.             Octet 5  is the diagnostic  code field; it  contains additional
  3440.             information regarding the  reason for the restart.   The coding
  3441.             of the  diagnostic code  field follows  CCITT X.25  recommenda-
  3442.             tions.
  3443.  
  3444.             In  a restart  request  packet, the  diagnostic  code field  is
  3445.             required, even if it indicates no additional information.
  3446.  
  3447.             In network applications, the diagnostic code field is passed to
  3448.             the corresponding DTEs as the diagnostic  code field of a reset
  3449.             indication packet.
  3450.  
  3451.             The contents  of the  diagnostic code  field do  not alter  the
  3452.             meaning of the  restarting cause field.  A DTE  is not required
  3453.             to undertake any action on the  contents of the diagnostic code
  3454.             field.  The restarting cause field must be accepted even if the
  3455.             diagnostic code field contains an unspecified code combination.
  3456.  
  3457.  
  3458.  
  3459.  
  3460.                                   PACKET LAYER LOGICAL INTERFACE    Page 46
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.             X.PC Protocol Specification                   September 8, 1983
  3471.  
  3472.  
  3473.             4.9.2 Restart Confirmation Packet                  ______________
  3474.  
  3475.             Figure 20 illustrates  the format  of the  restart confirmation
  3476.             packet transmitted by a DTE and the  format of the restart con-
  3477.             firmation packet received by a DTE.
  3478.  
  3479.             The first three  octets consist of  the general  format identi-
  3480.             fier,  the  logical  channel  identifier,  the  packet  receive
  3481.             sequence  number, the  packet  send  sequence number,  and  the
  3482.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3483.             4.4.5).
  3484.  
  3485.  
  3486.                                           Bits
  3487.                              8   7   6   5   4   3   2   1
  3488.                     Octet  .---.---.---.---.---.---.---.---.
  3489.                            |     G F I     | 0   0   0   0 |
  3490.                       1    |    (Note 1)   |               |
  3491.                            |---:---:---:---:---:---:---:---|
  3492.                            |   P(R)        |    P(S)       |
  3493.                       2    |               |               |
  3494.                            |---:---:---:---:---:---:---:---|
  3495.                            |    Packet type identifier     |
  3496.                       3    | 1   1   1   1   1   1   1   1 |
  3497.                            |---:---:---:---:---:---:---:---|
  3498.  
  3499.                            Note 1: Coded 1000
  3500.  
  3501.                      Figure 20  Restart Confirmation Packet Format
  3502.  
  3503.  
  3504.             SECTION 4.10 Diagnostic Packet Format            ________________
  3505.  
  3506.             Figure 21 illustrates the format of the diagnostic Packet.
  3507.  
  3508.             All DTEs  must be  able to  receive a  diagnostic packet.   The
  3509.             diagnostic packet  may be  used in  a DTE/DCE  environment, and
  3510.             then only to be sent by a  DCE to a DTE.  The diagnostic packet
  3511.             may be originated by  a DTE only in a  DTE/DTE environment pro-
  3512.             vided its generation can be suppressed when connected to a net-
  3513.             work.
  3514.  
  3515.             The first three  octets consist of  the general  format identi-
  3516.             fier,  the  logical  channel  identifier,  the  packet  receive
  3517.             sequence  number, the  packet  send  sequence number,  and  the
  3518.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3519.             4.4.5).  However, the logical channel identifier is set to 0.
  3520.  
  3521.  
  3522.  
  3523.                                   PACKET LAYER LOGICAL INTERFACE    Page 47
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.             X.PC Protocol Specification                   September 8, 1983
  3534.  
  3535.  
  3536.  
  3537.  
  3538.                                           Bits
  3539.                              8   7   6   5   4   3   2   1
  3540.                     Octet  .---.---.---.---.---.---.---.---.
  3541.                            |     G F I     |     L C I     |
  3542.                       1    |    (Note 1)   |               |
  3543.                            |---:---:---:---:---:---:---:---|
  3544.                            |    P(R)       |    P(S)       |
  3545.                       2    |               |               |
  3546.                            |---:---:---:---:---:---:---:---|
  3547.                            |    Packet type identifier     |
  3548.                       3    | 1   1   1   1   0   0   0   1 |
  3549.                            |---:---:---:---:---:---:---:---|
  3550.                            |      Diagnostic code          |
  3551.                       4    |                               |
  3552.                            |---:---:---:---:---:---:---:---|
  3553.                            |    Diagnostic explanation     |
  3554.                       5    |          (Note 2)             |
  3555.                            //                             //
  3556.                            |                               |
  3557.                            |---:---:---:---:---:---:---:---|
  3558.  
  3559.             Note 1: Coded 1000
  3560.             Note 2: The maximum length of  the diagnostic explanation field
  3561.                     is three octets.  Its actual length depends on the rea-
  3562.                     son the diagnostic packet was issued.
  3563.  
  3564.                           Figure 21  Diagnostic Packet Format
  3565.  
  3566.  
  3567.             Diagnostic Code Field            _____________________
  3568.  
  3569.             Octet 4 is  the diagnostic code field;  it contains information
  3570.             regarding the error condition that resulted in the transmission
  3571.             of the  diagnostic packet.  The  coding of the  diagnostic code
  3572.             field follows CCITT X.25 recommendations.
  3573.  
  3574.  
  3575.             Diagnostic Explanation Field            _________________________
  3576.  
  3577.             When the diagnostic packet is issued as  a result of the recep-
  3578.             tion  of an  erroneous packet,  this field  contains the  first
  3579.             three octets of  header information from the  erroneous packet.
  3580.             If the erroneous packet contained  less than three octets, this
  3581.             field  contains only  the integral  octets, if  any, that  were
  3582.             received by a DTE.
  3583.  
  3584.  
  3585.  
  3586.                                   PACKET LAYER LOGICAL INTERFACE    Page 48
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.             X.PC Protocol Specification                   September 8, 1983
  3597.  
  3598.  
  3599.             When the diagnostic packet is issued  as a result of a timeout,
  3600.             the diagnostic explanation field contains two octets.
  3601.  
  3602.             Bits 8, 7, 6, and 5 of the first octet contain the general for-
  3603.             mat identifier of the interface.
  3604.  
  3605.             Bits 4 through 1 of the first octet and bits 8 through 1 of the
  3606.             second octet are set to 0 if  the restart timer expired (T10 or
  3607.             T20 for DTE/DCE or DTE/DTE  environments respectively) and give
  3608.             the number of the logical channel on which the timeout occurred
  3609.             if the reset timer (T12 or T22  for DTE/DCE or DTE/DTE environ-
  3610.             ments respectively) or the clear timer  (T13 or T23 for DTE/DCE
  3611.             or DTE/DTE environments respectively) expired.
  3612.  
  3613.  
  3614.             SECTION 4.11 Reject Packet Format            ____________________
  3615.  
  3616.             Figure 22 illustrates the format of the reject packet.
  3617.  
  3618.             The first three  octets consist of  the general  format identi-
  3619.             fier,  the  logical  channel  identifier,  the  packet  receive
  3620.             sequence  number, the  packet  send  sequence number,  and  the
  3621.             packet  type  identifier  fields  (see  Sections 4.4.1  through
  3622.             4.4.5).
  3623.  
  3624.             Bits 8,  7, 6,  and 5  of octet  2 contain  the packet  receive
  3625.             sequence number P(R).  P(R) is binary coded, where bit 5 is the
  3626.             low order bit.
  3627.  
  3628.             Bits 4, 3, 2, and 1 of octet 2 are set to 0.
  3629.  
  3630.  
  3631.                                           Bits
  3632.                              8   7   6   5   4   3   2   1
  3633.                     Octet  .---.---.---.---.---.---.---.---.
  3634.                            |     G F I     |     L C I     |
  3635.                       1    |    (Note 1)   |               |
  3636.                            |---:---:---:---:---:---:---:---|
  3637.                            |    P(R)       |   Reserved    |
  3638.                       2    |               |               |
  3639.                            |---:---:---:---:---:---:---:---|
  3640.                            |    Packet type identifier     |
  3641.                       3    | 0   0   0   0   1   0   0   1 |
  3642.                            |---:---:---:---:---:---:---:---|
  3643.  
  3644.                            Note 1: Coded 1000
  3645.  
  3646.                             Figure 22  Reject Packet Format
  3647.  
  3648.  
  3649.                                   PACKET LAYER LOGICAL INTERFACE    Page 49
  3650.  
  3651.  
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.             X.PC Protocol Specification                   September 8, 1983
  3660.  
  3661.  
  3662.             SECTION 4.12 Optional User Facilities Other Than X.25
  3663.  
  3664.             These facilities  are agreed upon for  a period by the  DTE and
  3665.             DXE.
  3666.  
  3667.             The reconnect facility allows virtual calls to be maintained if
  3668.             the physical connection between the DTE and DXE is lost.  It is
  3669.             applied on a per-virtual-call basis.
  3670.  
  3671.             A  DTE requests  this  facility by  including  the request  for
  3672.             reconnect facility code and parameter  in the facility field of
  3673.             the call request packet, along with the  DTE part of the recon-
  3674.             nect key.
  3675.  
  3676.             A DCE  indicates acceptance  of this  request by  including the
  3677.             request for reconnect facility code and parameter in the facil-
  3678.             ity field of the call accepted  packet, along with the DCE part
  3679.             of the reconnect key.
  3680.  
  3681.             If the  physical connection is  lost, the DTE  will reestablish
  3682.             the physical connection, perform the  packet layer restart pro-
  3683.             cedure, and  issue a  call request packet  on the  same logical
  3684.             channel.  Included  in the facility  field of the  call request
  3685.             packet  is the  reconnect facility  code  and parameters.   The
  3686.             parameters include both the DTE and DCE reconnect key.
  3687.  
  3688.             The DCE  will match  these keys  against the  keys for  virtual
  3689.             calls being  maintained and will  respond with a  call accepted
  3690.             packet with the reconnect key in  the reconnect facility param-
  3691.             eters in the facility field.
  3692.  
  3693.             At this  point the DTE and  DCE exchange RR  packets indicating
  3694.             the P(R) of the next packet  expected.  This allows recovery of
  3695.             any packets lost when the physical connection failed.
  3696.  
  3697.             The DCE will maintain virtual calls for a specified time agreed
  3698.             upon between the DTE and DCE.
  3699.  
  3700.  
  3701.             SECTION 4.13 Optional User Facility Format            ___________
  3702.  
  3703.             The formats  described in this  section apply only  to optional
  3704.             user facilities that may be present  in the call setup and call
  3705.             clearing packets used in conjunction with virtual call service.
  3706.             Only formats for X.25 user facilities that differ from standard
  3707.             X.25 formats  and for  a number of  user facilities  other than
  3708.             X.25 are described.
  3709.  
  3710.  
  3711.  
  3712.                                   PACKET LAYER LOGICAL INTERFACE    Page 50
  3713.  
  3714.  
  3715.  
  3716.  
  3717.  
  3718.  
  3719.  
  3720.  
  3721.  
  3722.             X.PC Protocol Specification                   September 8, 1983
  3723.  
  3724.  
  3725.             The facility  field is present  only when  the DXE is  using an
  3726.             optional user  facility requiring some  indication in  the call
  3727.             request, incoming  call, call  accepted, call  connected, clear
  3728.             request, or clear indication packets.
  3729.  
  3730.             A facility marker  consisting of two octets  separates requests
  3731.             for X.25 facilities, as specified in CCITT recommendation X.25,
  3732.             from requests for  facilities other than X.25 that  may also be
  3733.             offered.  The  first octet is a  facility code field,  which is
  3734.             set to  zero, and  the second octet  is the  facility parameter
  3735.             field.  The facility  parameter field is set to  either all 0's
  3736.             or all 1's, depending on whether  the facility requests follow-
  3737.             ing the  marker refer to facilities  offered by the  calling or
  3738.             the called network respectively.  For  virtual calls within the
  3739.             network and for DTE/DTE operation, the facility parameter field
  3740.             is set to all 0's.
  3741.  
  3742.             Requests for facilities other than  X.25 offered by the calling
  3743.             and called  networks may be  present simultaneously  within the
  3744.             facility field  and, in  such cases,  two facility  markers are
  3745.             required with the facility parameter  fields coded as described
  3746.             above.
  3747.  
  3748.             Within the facility field, requests for X.25 facilities precede
  3749.             requests for facilities other than X.25.  Facility markers need
  3750.             be included only  when requests for facilities  other than X.25
  3751.             are present.
  3752.  
  3753.  
  3754.             4.13.1 Flow Control Parameter Packet Size                   _____
  3755.  
  3756.             Values from  4 to 8, corresponding  to packet sizes of  16, 32,
  3757.             64, 128, and 256, or a continuous subset of these values may be
  3758.             offered.  A packet  size of 128 must always  be available.  The
  3759.             maximum X.25 packet size is 1024 octets.
  3760.  
  3761.  
  3762.             4.13.2 Flow Control Parameter Window Size                   _____
  3763.  
  3764.             Window sizes from 2  to 15 are valid.  A window  size of 2 must
  3765.             always  be  available.   The maximum  number  of  data  packets
  3766.             allowed within the window is the window size divided by two.
  3767.  
  3768.  
  3769.  
  3770.  
  3771.  
  3772.  
  3773.  
  3774.  
  3775.                                   PACKET LAYER LOGICAL INTERFACE    Page 51
  3776.  
  3777.  
  3778.  
  3779.  
  3780.  
  3781.  
  3782.  
  3783.  
  3784.  
  3785.             X.PC Protocol Specification                   September 8, 1983
  3786.  
  3787.  
  3788.             4.13.3 Reconnect Facility                   __________________
  3789.  
  3790.             This section covers the  facility code and the  facility param-
  3791.             eter fields of the reconnect facility.
  3792.  
  3793.             Facility Code Field            ___________________
  3794.  
  3795.             The coding of the facility code  field for the reconnect facil-
  3796.             ity for facilities other than X.25 is:
  3797.  
  3798.                     Bit:  8 7 6 5 4 3 2 1
  3799.                    Code:  0 1 0 0 0 0 0 1
  3800.  
  3801.             Facility Parameter Field            ________________________
  3802.  
  3803.             In  call request  packets,  the first  octet  of the  reconnect
  3804.             facility parameter field contains the DTE part of the reconnect
  3805.             key; the  second octet contains the  DCE part of  the reconnect
  3806.             key, which is also supplied by the DTE.
  3807.  
  3808.             In call accepted packets, the DCE  provides the DTE part of the
  3809.             reconnect key in the first octet and the DCE part of the recon-
  3810.             nect key in the second octet.
  3811.  
  3812.  
  3813.  
  3814.  
  3815.  
  3816.  
  3817.  
  3818.  
  3819.  
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.  
  3826.  
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.  
  3833.  
  3834.  
  3835.  
  3836.  
  3837.  
  3838.                                   PACKET LAYER LOGICAL INTERFACE    Page 52
  3839.  
  3840.  
  3841.  
  3842.  
  3843.  
  3844.  
  3845.  
  3846.  
  3847.  
  3848.             X.PC Protocol Specification                   September 8, 1983
  3849.  
  3850.  
  3851.             SECTION 5.0 DATA LINK LAYER SPECIFICATION            ____________
  3852.  
  3853.             X.PC's  data link  layer  is responsible  for  the full  duplex
  3854.             transfer of network  layer packets between the DTE  and the DCE
  3855.             in transparent, error-protected frames.
  3856.  
  3857.             The data link layer procedure consists  of the exchange of data
  3858.             link frames formatted as specified in Section 5.1.
  3859.  
  3860.             Each data link frame contains one packet.
  3861.  
  3862.  
  3863.             SECTION 5.1 Framing Format            __________________________
  3864.  
  3865.             Figure 23  illustrates  the  format of  the  data  link  frame.
  3866.             Transparency is accomplished by using  a length octet following
  3867.             the start of the frame.  The  length octet indicates the number
  3868.             of octets following the first cyclic redundancy check (CRC).
  3869.  
  3870.                Octet:  1
  3871.                Field:  STX
  3872.                Value:  0000 0010
  3873.             Function:  Denotes the start of a  data link frame.  This octet
  3874.                        is not included in the CRC1 calculation.
  3875.  
  3876.                Octet:  2
  3877.                Field:  Length
  3878.                Value:  Variable
  3879.             Function:  Number  of packet  data octets  following the  first
  3880.                        CRC.  If the  value is zero, no  packet data follows
  3881.                        CRC1, and CRC2 is not  used.  This octet is included
  3882.                        in the CRC1 calculation.
  3883.  
  3884.                Octet:  3 - 5
  3885.                Field:  Packet data 1
  3886.                Value:  Variable
  3887.             Function:  Contains the first three bytes of packet data.  This
  3888.                        octet is included in the CRC1 calculation.
  3889.  
  3890.                Octet:  6, 7
  3891.                Field:  CRC1
  3892.                Value:  Variable
  3893.             Function:  Two  bytes of  CRC bits  for  error detection.   The
  3894.                        algorithm used to generate and  test check bits fol-
  3895.                        lows CCITT  CRC-16.  The  length and  packet data  1
  3896.                        octets are included in the CRC1 calculation.
  3897.  
  3898.  
  3899.  
  3900.  
  3901.                                    DATA LINK LAYER SPECIFICATION    Page 53
  3902.  
  3903.  
  3904.  
  3905.  
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.             X.PC Protocol Specification                   September 8, 1983
  3912.  
  3913.  
  3914.                Octet:  8 to length+7
  3915.                Field:  Packet data 2
  3916.                Value:  Variable
  3917.             Function:  Packets larger than three  octets are transmitted in
  3918.                        two parts;  this field contains  packet octet  4 and
  3919.                        succeeding  octets.  The  number of  octets in  this
  3920.                        field is contained in the  length field.  All octets
  3921.                        are included in the CRC2 calculation.
  3922.  
  3923.                Octet:  Length+8, length+9
  3924.                Field:  CRC2
  3925.                Value:  Variable
  3926.             Function:  Two octets  of CRC bits  for error  detection.  CRC2
  3927.                        uses the  same algorithm as  CRC1.  CRC2  is present
  3928.                        only if packet data  2 octets are present,  as indi-
  3929.                        cated by the  length field being greater  than zero.
  3930.                        Only packet  data 2 octets  are included in  the CRC
  3931.                        calculation.
  3932.  
  3933.  
  3934.                                           Bits
  3935.                              8   7   6   5   4   3   2   1
  3936.                      Octet .---.---.---.---.---.---.---.---.
  3937.                        1   |            STX                |
  3938.                            |---:---:---:---:---:---:---:---|
  3939.                        2   |           Length              |
  3940.                            |---:---:---:---:---:---:---:---|
  3941.                        3   |       Packet data 1           |
  3942.                            |-                             -|
  3943.                        4   |                               |
  3944.                            |-                             -|
  3945.                        5   |                               |
  3946.                            |---:---:---:---:---:---:---:---|
  3947.                        6   |           CRC1                |
  3948.                            :-                             -|
  3949.                        7   |                               |
  3950.                            |---:---:---:---:---:---:---:---|
  3951.                        8   |                               |
  3952.                            //      Packet data 2          //
  3953.                            |                               |
  3954.                            |---:---:---:---:---:---:---:---|
  3955.                        N   |           CRC2                |
  3956.                            |-                             -|
  3957.                       N+1  |                               |
  3958.                            |---:---:---:---:---:---:---:---|
  3959.  
  3960.                   Figure 23  X.PC Data Link Transmission Frame Format
  3961.  
  3962.  
  3963.  
  3964.                                    DATA LINK LAYER SPECIFICATION    Page 54
  3965.  
  3966.  
  3967.  
  3968.  
  3969.  
  3970.  
  3971.  
  3972.  
  3973.  
  3974.             X.PC Protocol Specification                   September 8, 1983
  3975.  
  3976.  
  3977.             SECTION 5.2 Maximum Data Link Frame Size            _____________
  3978.  
  3979.             A data link frame can accommodate no more than 258 packet layer
  3980.             octets.  The maximum data link  frame size, including overhead,
  3981.             is 264 octets.
  3982.  
  3983.  
  3984.  
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  
  4003.  
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009.  
  4010.  
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  
  4016.  
  4017.  
  4018.  
  4019.  
  4020.  
  4021.  
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.                                    DATA LINK LAYER SPECIFICATION    Page 55
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034.  
  4035.  
  4036.  
  4037.             X.PC Protocol Specification                   September 8, 1983
  4038.  
  4039.  
  4040.                               Appendix A, PACKET FORMATS
  4041.  
  4042.  
  4043.             This appendix duplicates Figure 2 and Figures 8 through 22 from
  4044.             Section 4 of the  text.  These  figures illustrate  packet for-
  4045.             mats.  They are presented here a second time for convenience in
  4046.             comparing the formats.
  4047.  
  4048.  
  4049.  
  4050.                                           Bits
  4051.                              8   7   6   5   4   3   2   1
  4052.                     Octet  .---.---.---.---.---.---.---.---.
  4053.                            |     G F I     |     L C I     |
  4054.                       1    |               |               |
  4055.                            |---:---:---:---:---:---:---:---|
  4056.                            |    P(R)       |    P(S)       |
  4057.                       2    |               |               |
  4058.                            |---:---:---:---:---:---:---:---|
  4059.                            |    Packet type identifier     |
  4060.                       3    |                               |
  4061.                            |---:---:---:---:---:---:---:---|
  4062.                            |  Additional fields dependent  |
  4063.                            //       on packet type        //
  4064.                            |                               |
  4065.                            |---:---:---:---:---:---:---:---|
  4066.  
  4067.                             Figure 2  General Packet Format
  4068.  
  4069.  
  4070.  
  4071.  
  4072.  
  4073.  
  4074.  
  4075.  
  4076.  
  4077.  
  4078.  
  4079.  
  4080.  
  4081.  
  4082.  
  4083.  
  4084.  
  4085.  
  4086.  
  4087.  
  4088.  
  4089.  
  4090.                                       Appendix A, PACKET FORMATS    Page 56
  4091.  
  4092.  
  4093.  
  4094.  
  4095.  
  4096.  
  4097.  
  4098.  
  4099.  
  4100.             X.PC Protocol Specification                   September 8, 1983
  4101.  
  4102.  
  4103.                                           Bits
  4104.                              8   7   6   5   4   3   2   1
  4105.                     Octet  .---.---.---.---.---.---.---.---.
  4106.                            |     G F I     |     L C I     |
  4107.                       1    |    (Note 1)   |               |
  4108.                            |---:---:---:---:---:---:---:---|
  4109.                            |    P(R)       |    P(S)       |
  4110.                       2    |               |               |
  4111.                            |---:---:---:---:---:---:---:---|
  4112.                            |    Packet type identifier     |
  4113.                       3    | 0   0   0   0   1   0   1   1 |
  4114.                            |---:---:---:---:---:---:---:---|
  4115.                            |  Calling DTE  :  Called DTE   |
  4116.                       4    | address length: address length|
  4117.                            |---:---:---:---:---:---:---:---|
  4118.                            |        DTE address(es)        |
  4119.                            //          (Note 2)           //
  4120.                            |               :---:---:---:---|
  4121.                            |               | 0   0   0   0 |
  4122.                            |---:---:---:---:---:---:---:---|
  4123.                            | 0   0 |   Facility length     |
  4124.                            |       |                       |
  4125.                            |---:---:---:---:---:---:---:---|
  4126.                            |          Facilities           |
  4127.                            //          (Note 3)           //
  4128.                            |                               |
  4129.                            :---:---:---:---:---:---:---:---:
  4130.                            |       Call user data          |
  4131.                            //      (Notes 4 and 5)        //
  4132.                            |                               |
  4133.                            :---:---:---:---:---:---:---:---:
  4134.  
  4135.             Note 1: Coded 1000
  4136.             Note 2: The  figure  is  drawn assuming  the  total  number  of
  4137.                     address digits present is odd.
  4138.             Note 3: The  maximum  length  of the  facilities  field  is  63
  4139.                     octets.
  4140.             Note 4: Bits 8 and 7  of the first octet of call  user data may
  4141.                     have particular significance (see Section 4.5.1).
  4142.             Note 5: The maximum  length of the call  user data field  is 16
  4143.                     octets.
  4144.  
  4145.                 Figure 8  Call Request and Incoming Call Packet Format
  4146.  
  4147.  
  4148.  
  4149.  
  4150.  
  4151.  
  4152.  
  4153.                                       Appendix A, PACKET FORMATS    Page 57
  4154.  
  4155.  
  4156.  
  4157.  
  4158.  
  4159.  
  4160.  
  4161.  
  4162.  
  4163.             X.PC Protocol Specification                   September 8, 1983
  4164.  
  4165.  
  4166.                                           Bits
  4167.                              8   7   6   5   4   3   2   1
  4168.                     Octet  .---.---.---.---.---.---.---.---.
  4169.                            |     G F I     |     L C I     |
  4170.                       1    |    (Note 1)   |               |
  4171.                            |---:---:---:---:---:---:---:---|
  4172.                            |    P(R)       |    P(S)       |
  4173.                       2    |               |               |
  4174.                            |---:---:---:---:---:---:---:---|
  4175.                            |    Packet type identifier     |
  4176.                       3    | 0   0   0   0   1   1   1   1 |
  4177.                            |---:---:---:---:---:---:---:---|
  4178.                            |  Calling DTE  :  Called DTE   |
  4179.                       4    | address length: address length|
  4180.                            |---:---:---:---:---:---:---:---|
  4181.                            |        DTE address(es)        |
  4182.                            //          (Note 2)           //
  4183.                            |               :---:---:---:---|
  4184.                            |               | 0   0   0   0 |
  4185.                            |---:---:---:---:---:---:---:---|
  4186.                            | 0   0 |   Facility length     |
  4187.                            |       |                       |
  4188.                            |---:---:---:---:---:---:---:---|
  4189.                            |          Facilities           |
  4190.                            //          (Note 3)           //
  4191.                            |                               |
  4192.                            :---:---:---:---:---:---:---:---:
  4193.                            |       Call user data          |
  4194.                            //      (Notes 4 and 5)        //
  4195.                            |                               |
  4196.                            :---:---:---:---:---:---:---:---:
  4197.  
  4198.             Note 1: Coded 1000
  4199.             Note 2: The  figure  is  drawn assuming  the  total  number  of
  4200.                     address digits present is odd.
  4201.             Note 3: The  maximum  length  of the  facilities  field  is  63
  4202.                     octets.
  4203.             Note 4: Bits 8 and 7  of the first octet of call  user data may
  4204.                     have particular significance (see Section 4.5.1).
  4205.             Note 5: The maximum  length of the call  user data field  is 16
  4206.                     octets.
  4207.  
  4208.                Figure 9  Call Accepted and Call Connected Packet Format
  4209.  
  4210.  
  4211.  
  4212.  
  4213.  
  4214.  
  4215.  
  4216.                                       Appendix A, PACKET FORMATS    Page 58
  4217.  
  4218.  
  4219.  
  4220.  
  4221.  
  4222.  
  4223.  
  4224.  
  4225.  
  4226.             X.PC Protocol Specification                   September 8, 1983
  4227.  
  4228.  
  4229.                                           Bits
  4230.                              8   7   6   5   4   3   2   1
  4231.                     Octet  .---.---.---.---.---.---.---.---.
  4232.                            |     G F I     |     L C I     |
  4233.                       1    |    (Note 1)   |               |
  4234.                            |---:---:---:---:---:---:---:---|
  4235.                            |    P(R)       |    P(S)       |
  4236.                       2    |               |               |
  4237.                            |---:---:---:---:---:---:---:---|
  4238.                            |    Packet type identifier     |
  4239.                       3    | 0   0   0   1   0   0   1   1 |
  4240.                            |---:---:---:---:---:---:---:---|
  4241.                            |      Clearing cause           |
  4242.                       4    |                               |
  4243.                            |---:---:---:---:---:---:---:---|
  4244.                            |      Diagnostic code          |
  4245.                       5    |          (Note 3)             |
  4246.                            |---:---:---:---:---:---:---:---|
  4247.  
  4248.             Note 1: Coded 1000
  4249.             Note 2: Address format default is CCITT X.121.
  4250.             Note 3: Diagnostic code is optional
  4251.  
  4252.               Figure 10  Clear Request and Clear Indication Packet Format
  4253.  
  4254.  
  4255.  
  4256.                                           Bits
  4257.                              8   7   6   5   4   3   2   1
  4258.                     Octet  .---.---.---.---.---.---.---.---.
  4259.                            |     G F I     |     L C I     |
  4260.                       1    |    (Note 1)   |               |
  4261.                            |---:---:---:---:---:---:---:---|
  4262.                            |    P(R)       |    P(S)       |
  4263.                       2    |               |               |
  4264.                            |---:---:---:---:---:---:---:---|
  4265.                            |    Packet type identifier     |
  4266.                       3    | 0   0   0   1   0   1   1   1 |
  4267.                            |---:---:---:---:---:---:---:---|
  4268.  
  4269.                            Note 1: Coded 1000
  4270.  
  4271.                       Figure 11  Clear Confirmation Packet Format
  4272.  
  4273.  
  4274.  
  4275.  
  4276.  
  4277.  
  4278.  
  4279.                                       Appendix A, PACKET FORMATS    Page 59
  4280.  
  4281.  
  4282.  
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288.  
  4289.             X.PC Protocol Specification                   September 8, 1983
  4290.  
  4291.  
  4292.                                           Bits
  4293.                              8   7   6   5   4   3   2   1
  4294.                     Octet  .---.---.---.---.---.---.---.---.
  4295.                            |     G F I     |     L C I     |
  4296.                       1    |    (Note 1)   |               |
  4297.                            |---:---:---:---:---:---:---:---|
  4298.                            |    P(R)       |    P(S)       |
  4299.                       2    |               |               |
  4300.                            |---:---:---:---:---:---:---:---|
  4301.                            |          User data            |
  4302.                            //                             //
  4303.                            |                               |
  4304.                            |---:---:---:---:---:---:---:---|
  4305.  
  4306.             Note 1: Coded 0DQM, where D = D bit, Q = Q bit, and M = M bit
  4307.  
  4308.                              Figure 12  Data Packet Format
  4309.  
  4310.  
  4311.  
  4312.                                           Bits
  4313.                              8   7   6   5   4   3   2   1
  4314.                     Octet  .---.---.---.---.---.---.---.---.
  4315.                            |     G F I     |     L C I     |
  4316.                       1    |    (Note 1)   |               |
  4317.                            |---:---:---:---:---:---:---:---|
  4318.                            |    P(R)       |    P(S)       |
  4319.                       2    |               |               |
  4320.                            |---:---:---:---:---:---:---:---|
  4321.                            |    Packet type identifier     |
  4322.                       3    | 0   0   1   0   0   0   1   1 |
  4323.                            |---:---:---:---:---:---:---:---|
  4324.                            |      Interrupt user data      |
  4325.                       4    |                               |
  4326.                            |---:---:---:---:---:---:---:---|
  4327.  
  4328.                            Note 1: Coded 1000
  4329.  
  4330.                           Figure 13  Interrupt Packet Format
  4331.  
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.                                       Appendix A, PACKET FORMATS    Page 60
  4343.  
  4344.  
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.             X.PC Protocol Specification                   September 8, 1983
  4353.  
  4354.  
  4355.                                           Bits
  4356.                              8   7   6   5   4   3   2   1
  4357.                     Octet  .---.---.---.---.---.---.---.---.
  4358.                            |     G F I     |     L C I     |
  4359.                       1    |    (Note 1)   |               |
  4360.                            |---:---:---:---:---:---:---:---|
  4361.                            |    P(R)       |    P(S)       |
  4362.                       2    |               |               |
  4363.                            |---:---:---:---:---:---:---:---|
  4364.                            |    Packet type identifier     |
  4365.                       3    | 0   0   1   0   0   1   1   1 |
  4366.                            |---:---:---:---:---:---:---:---|
  4367.                       4    |      Interrupt user data      |
  4368.                            |---:---:---:---:---:---:---:---|
  4369.  
  4370.                            Note 1: Coded 1000
  4371.  
  4372.                     Figure 14  Interrupt Confirmation Packet Format
  4373.  
  4374.  
  4375.  
  4376.                                           Bits
  4377.                              8   7   6   5   4   3   2   1
  4378.                     Octet  .---.---.---.---.---.---.---.---.
  4379.                            |     G F I     |     L C I     |
  4380.                       1    |    (Note 1)   |               |
  4381.                            |---:---:---:---:---:---:---:---|
  4382.                            |    P(R)       |   Reserved    |
  4383.                       2    |               |               |
  4384.                            |---:---:---:---:---:---:---:---|
  4385.                            |    Packet type identifier     |
  4386.                       3    | 0   0   0   0   0   0   0   1 |
  4387.                            |---:---:---:---:---:---:---:---|
  4388.  
  4389.                            Note 1: Coded 1000
  4390.  
  4391.                         Figure 15  Receive Ready Packet Format
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.  
  4405.                                       Appendix A, PACKET FORMATS    Page 61
  4406.  
  4407.  
  4408.  
  4409.  
  4410.  
  4411.  
  4412.  
  4413.  
  4414.  
  4415.             X.PC Protocol Specification                   September 8, 1983
  4416.  
  4417.  
  4418.                                           Bits
  4419.                              8   7   6   5   4   3   2   1
  4420.                     Octet  .---.---.---.---.---.---.---.---.
  4421.                            |     G F I     |     L C I     |
  4422.                       1    |    (Note 1)   |               |
  4423.                            |---:---:---:---:---:---:---:---|
  4424.                            |    P(R)       |   Reserved    |
  4425.                       2    |               |               |
  4426.                            |---:---:---:---:---:---:---:---|
  4427.                            |    Packet type identifier     |
  4428.                       3    | 0   0   0   0   0   1   0   1 |
  4429.                            |---:---:---:---:---:---:---:---|
  4430.  
  4431.                            Note 1: Coded 1000
  4432.  
  4433.                       Figure 16  Receive Not Ready Packet Format
  4434.  
  4435.  
  4436.  
  4437.                                           Bits
  4438.                              8   7   6   5   4   3   2   1
  4439.                     Octet  .---.---.---.---.---.---.---.---.
  4440.                            |     G F I     |     L C I     |
  4441.                       1    |    (Note 1)   |               |
  4442.                            |---:---:---:---:---:---:---:---|
  4443.                            | 0   0   0   0   0   0   0   0 |
  4444.                       2    |               |               |
  4445.                            |---:---:---:---:---:---:---:---|
  4446.                            |    Packet type identifier     |
  4447.                       3    | 0   0   0   1   1   0   1   1 |
  4448.                            |---:---:---:---:---:---:---:---|
  4449.                            |      Resetting cause          |
  4450.                       4    |                               |
  4451.                            |---:---:---:---:---:---:---:---|
  4452.                            |      Diagnostic code          |
  4453.                       5    |         (Note 2)              |
  4454.                            |---:---:---:---:---:---:---:---|
  4455.  
  4456.                            Note 1: Coded 1000
  4457.                            Note 2: Diagnostic code is optional.
  4458.  
  4459.               Figure 17  Reset Request and Reset Indication Packet Format
  4460.  
  4461.  
  4462.  
  4463.  
  4464.  
  4465.  
  4466.  
  4467.  
  4468.                                       Appendix A, PACKET FORMATS    Page 62
  4469.  
  4470.  
  4471.  
  4472.  
  4473.  
  4474.  
  4475.  
  4476.  
  4477.  
  4478.             X.PC Protocol Specification                   September 8, 1983
  4479.  
  4480.  
  4481.                                           Bits
  4482.                              8   7   6   5   4   3   2   1
  4483.                     Octet  .---.---.---.---.---.---.---.---.
  4484.                            |     G F I     |     L C I     |
  4485.                       1    |    (Note 1)   |               |
  4486.                            |---:---:---:---:---:---:---:---|
  4487.                            |    P(R)       |    P(S)       |
  4488.                       2    |               |               |
  4489.                            |---:---:---:---:---:---:---:---|
  4490.                            |    Packet type identifier     |
  4491.                       3    | 0   0   0   1   1   1   1   1 |
  4492.                            |---:---:---:---:---:---:---:---|
  4493.  
  4494.                            Note 1: Coded 1000
  4495.  
  4496.                       Figure 18  Reset Confirmation Packet Format
  4497.  
  4498.  
  4499.  
  4500.                                           Bits
  4501.                              8   7   6   5   4   3   2   1
  4502.                     Octet  .---.---.---.---.---.---.---.---.
  4503.                            |     G F I     | 0   0   0   0 |
  4504.                       1    |    (Note 1)   |               |
  4505.                            |---:---:---:---:---:---:---:---|
  4506.                            | 0   0   0   0   0   0   0   0 |
  4507.                       2    |               |               |
  4508.                            |---:---:---:---:---:---:---:---|
  4509.                            |    Packet type identifier     |
  4510.                       3    | 1   1   1   1   1   0   1   1 |
  4511.                            |---:---:---:---:---:---:---:---|
  4512.                            |      Restarting cause         |
  4513.                       4    |                               |
  4514.                            |---:---:---:---:---:---:---:---|
  4515.                            |      Diagnostic code          |
  4516.                       5    |         (Note 2)              |
  4517.                            |---:---:---:---:---:---:---:---|
  4518.  
  4519.                            Note 1: Coded 1000
  4520.                            Note 2: Diagnostic code is optional.
  4521.  
  4522.             Figure 19  Restart Request and Restart Indication Packet Format
  4523.  
  4524.  
  4525.  
  4526.  
  4527.  
  4528.  
  4529.  
  4530.  
  4531.                                       Appendix A, PACKET FORMATS    Page 63
  4532.  
  4533.  
  4534.  
  4535.  
  4536.  
  4537.  
  4538.  
  4539.  
  4540.  
  4541.             X.PC Protocol Specification                   September 8, 1983
  4542.  
  4543.  
  4544.                                           Bits
  4545.                              8   7   6   5   4   3   2   1
  4546.                     Octet  .---.---.---.---.---.---.---.---.
  4547.                            |     G F I     | 0   0   0   0 |
  4548.                       1    |    (Note 1)   |               |
  4549.                            |---:---:---:---:---:---:---:---|
  4550.                            |   P(R)        |    P(S)       |
  4551.                       2    |               |               |
  4552.                            |---:---:---:---:---:---:---:---|
  4553.                            |    Packet type identifier     |
  4554.                       3    | 1   1   1   1   1   1   1   1 |
  4555.                            |---:---:---:---:---:---:---:---|
  4556.  
  4557.                            Note 1: Coded 1000
  4558.  
  4559.                      Figure 20  Restart Confirmation Packet Format
  4560.  
  4561.  
  4562.  
  4563.                                           Bits
  4564.                              8   7   6   5   4   3   2   1
  4565.                     Octet  .---.---.---.---.---.---.---.---.
  4566.                            |     G F I     |     L C I     |
  4567.                       1    |    (Note 1)   |               |
  4568.                            |---:---:---:---:---:---:---:---|
  4569.                            |    P(R)       |    P(S)       |
  4570.                       2    |               |               |
  4571.                            |---:---:---:---:---:---:---:---|
  4572.                            |    Packet type identifier     |
  4573.                       3    | 1   1   1   1   0   0   0   1 |
  4574.                            |---:---:---:---:---:---:---:---|
  4575.                            |      Diagnostic code          |
  4576.                       4    |                               |
  4577.                            |---:---:---:---:---:---:---:---|
  4578.                            |    Diagnostic explanation     |
  4579.                       5    |          (Note 2)             |
  4580.                            //                             //
  4581.                            |                               |
  4582.                            |---:---:---:---:---:---:---:---|
  4583.  
  4584.             Note 1: Coded 1000
  4585.             Note 2: The maximum length of  the diagnostic explanation field
  4586.                     is three octets.  Its actual length depends on the rea-
  4587.                     son the diagnostics packet was issued.
  4588.  
  4589.                           Figure 21  Diagnostic Packet Format
  4590.  
  4591.  
  4592.  
  4593.  
  4594.                                       Appendix A, PACKET FORMATS    Page 64
  4595.  
  4596.  
  4597.  
  4598.  
  4599.  
  4600.  
  4601.  
  4602.  
  4603.  
  4604.             X.PC Protocol Specification                   September 8, 1983
  4605.  
  4606.  
  4607.                                           Bits
  4608.                              8   7   6   5   4   3   2   1
  4609.                     Octet  .---.---.---.---.---.---.---.---.
  4610.                            |     G F I     |     L C I     |
  4611.                       1    |    (Note 1)   |               |
  4612.                            |---:---:---:---:---:---:---:---|
  4613.                            |    P(R)       |   Reserved    |
  4614.                       2    |               |               |
  4615.                            |---:---:---:---:---:---:---:---|
  4616.                            |    Packet type identifier     |
  4617.                       3    | 0   0   0   0   1   0   0   1 |
  4618.                            |---:---:---:---:---:---:---:---|
  4619.  
  4620.                            Note 1: Coded 1000
  4621.  
  4622.                             Figure 22  Reject Packet Format
  4623.  
  4624.  
  4625.  
  4626.  
  4627.  
  4628.  
  4629.  
  4630.  
  4631.  
  4632.  
  4633.  
  4634.  
  4635.  
  4636.  
  4637.  
  4638.  
  4639.  
  4640.  
  4641.  
  4642.  
  4643.  
  4644.  
  4645.  
  4646.  
  4647.  
  4648.  
  4649.  
  4650.  
  4651.  
  4652.  
  4653.  
  4654.  
  4655.  
  4656.  
  4657.                                       Appendix A, PACKET FORMATS    Page 65
  4658.  
  4659.  
  4660.  
  4661.  
  4662.  
  4663.  
  4664.  
  4665.  
  4666.  
  4667.             X.PC Protocol Specification                   September 8, 1983
  4668.  
  4669.  
  4670.                                          INDEX
  4671.  
  4672.  
  4673.  
  4674.             Bandwidth utilization ............................. 4
  4675.             Batch traffic ..................................... 5
  4676.             Byte stuffing ..................................... 4, 6
  4677.  
  4678.             Call accepted packet format ....................... 30, 31, 58
  4679.             Call collision .................................... 10, 13
  4680.             Call connected packet format ...................... 30, 31, 58
  4681.             Call request packet format ........................ 26, 27, 57
  4682.             Clear confirmation packet format .................. 35, 36, 59
  4683.             Clear indication packet format .................... 33, 34, 59
  4684.             Clear request packet format ....................... 33, 34, 59
  4685.             Clearing cause field .............................. 34, 35, 43
  4686.             Control packets ................................... 8
  4687.             Counters .......................................... 16, 18, 19
  4688.  
  4689.             Data link frame ................................... 3
  4690.             Data link frame format ............................ 53
  4691.             Data link layer ................................... 53
  4692.             Data packet format ................................ 36, 37, 60
  4693.             Data packet limit ................................. 14
  4694.             Delivery confirmation bit (D bit) ................. 16, 23, 36
  4695.             Diagnostic packet format .......................... 47, 48, 64
  4696.             Duplicate packets ................................. 3, 22
  4697.  
  4698.             Error control ..................................... 4, 7, 16,
  4699.              53, 54
  4700.             Error rate ........................................ 3
  4701.  
  4702.             Flow control ...................................... 4, 7
  4703.  
  4704.             Incoming call packet format ....................... 26, 27, 57
  4705.             Interactive traffic ............................... 5
  4706.             Interrupt confirmation packet format .............. 38, 39, 61
  4707.             Interrupt packet format ........................... 37, 38, 60
  4708.  
  4709.             Length encoding ................................... 4, 6
  4710.             Logical channel identifier field .................. 24
  4711.             Logical channels .................................. 8
  4712.             Lost packets ...................................... 3, 16, 19,
  4713.  
  4714.  
  4715.  
  4716.  
  4717.  
  4718.  
  4719.  
  4720.                                                            INDEX    Page 66
  4721.  
  4722.  
  4723.  
  4724.  
  4725.  
  4726.  
  4727.  
  4728.  
  4729.  
  4730.             X.PC Protocol Specification                   September 8, 1983
  4731.  
  4732.  
  4733.              21, 50
  4734.  
  4735.             More data mark (M bit) ............................ 23, 36
  4736.             Multiplexing ...................................... 7
  4737.  
  4738.             Optional addressing facilities .................... 28, 32
  4739.             Optional user facility ............................ 50
  4740.             Optional user facility format ..................... 50
  4741.             Out-of-sequence packet ............................ 19
  4742.             Overhead .......................................... 4, 6, 13,
  4743.              55
  4744.  
  4745.             Packet layer entity ............................... 11
  4746.             Packet numbering .................................. 13
  4747.             Packet receive sequence number field .............. 24
  4748.             Packet send sequence number field ................. 24
  4749.             Packet structure .................................. 11
  4750.             Packet type identifier field ...................... 24
  4751.             Protocol identification ........................... 29
  4752.  
  4753.             Qualifier bit (Q bit) ............................. 23
  4754.  
  4755.             Receive not ready packet .......................... 16
  4756.             Receive not ready packet format ................... 40, 41, 62
  4757.             Receive ready packet .............................. 15
  4758.             Receive ready packet format ....................... 39, 40, 61
  4759.             Reconnect facility ................................ 4, 50, 52
  4760.             Reconnect key ..................................... 50, 52
  4761.             Reject packet format .............................. 49, 65
  4762.             Reset confirmation packet format .................. 43, 44, 63
  4763.             Reset indication packet format .................... 41, 42, 62
  4764.             Reset request packet format ....................... 41, 42, 62
  4765.             Restart indication packet format .................. 44
  4766.             Restart request packet format ..................... 44
  4767.  
  4768.             Throughput ........................................ 4
  4769.             Timers ............................................ 16, 18, 19
  4770.             Transmission line errors .......................... 3, 5
  4771.  
  4772.             Window algorithm .................................. 4
  4773.             Window size ....................................... 5, 51
  4774.  
  4775.  
  4776.  
  4777.  
  4778.  
  4779.  
  4780.  
  4781.  
  4782.  
  4783.                                                            INDEX    Page 67
  4784.  
  4785.  
  4786.  
  4787.  
  4788.  
  4789.  
  4790.